edu.umd.cs.findbugs.ba.generic
public class GenericSignatureParser extends Object
Modified from edu.umd.cs.findbugs.ba.SignatureParser
| Constructor Summary | |
|---|---|
| GenericSignatureParser(String signature)
Parses a generic method signature of the form:
(argument_signature)return_type_signature
| |
| Method Summary | |
|---|---|
| static boolean | compareSignatures(String plainSignature, String genericSignature)
Compare a plain method signature to the a generic method Signature and
return true if they match |
| int | getNumParameters()
Get the number of parameters in the signature.
|
| static int | getNumParametersForInvocation(InvokeInstruction inv, ConstantPoolGen cpg)
Get the number of parameters passed to method invocation.
|
| String | getReturnTypeSignature()
Get the method return type signature.
|
| static void | main(String[] args) |
| Iterator<String> | parameterSignatureIterator()
Get an Iterator over signatures of the method parameters.
|
(argument_signature)return_type_signature
Parameters: signature the method signature to be parsed
Returns: the number of parameters
Parameters: inv cpg
Returns: int number of parameters
Returns: the method return type signature
Returns: Iterator which returns the parameter type signatures in order