edu.umd.cs.findbugs.ba
Class SignatureParser

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.SignatureParser

public class SignatureParser
extends java.lang.Object

A simple class to parse method signatures.

Author:
David Hovemeyer

Constructor Summary
SignatureParser(java.lang.String signature)
          Constructor.
 
Method Summary
 int getNumParameters()
          Get the number of parameters in the signature.
 java.lang.String getReturnTypeSignature()
          Get the method return type signature.
static void main(java.lang.String[] args)
           
 java.util.Iterator<java.lang.String> parameterSignatureIterator()
          Get an Iterator over signatures of the method parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureParser

public SignatureParser(java.lang.String signature)
Constructor.

Parameters:
signature - the method signature to be parsed
Method Detail

parameterSignatureIterator

public java.util.Iterator<java.lang.String> parameterSignatureIterator()
Get an Iterator over signatures of the method parameters.

Returns:
Iterator which returns the parameter type signatures in order

getReturnTypeSignature

public java.lang.String getReturnTypeSignature()
Get the method return type signature.

Returns:
the method return type signature

getNumParameters

public int getNumParameters()
Get the number of parameters in the signature.

Returns:
the number of parameters

main

public static void main(java.lang.String[] args)