|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.generic.GenericSignatureParser
public class GenericSignatureParser
A simple class to parse method signatures that include generic information.
Modified from edu.umd.cs.findbugs.ba.SignatureParser
Constructor Summary | |
---|---|
GenericSignatureParser(java.lang.String signature)
Parses a generic method signature of the form: (argument_signature)return_type_signature |
Method Summary | |
---|---|
static boolean |
compareSignatures(java.lang.String plainSignature,
java.lang.String genericSignature)
Compare a plain method signature to the a generic method Signature and return true if they match |
static java.util.Iterator<java.lang.String> |
getGenericSignatureIterator(org.apache.bcel.classfile.Method target)
|
int |
getNumParameters()
Get the number of parameters in the signature. |
static int |
getNumParametersForInvocation(org.apache.bcel.generic.InvokeInstruction inv,
org.apache.bcel.generic.ConstantPoolGen cpg)
Get the number of parameters passed to method invocation. |
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 |
---|
public GenericSignatureParser(java.lang.String signature)
(argument_signature)return_type_signature
signature
- the method signature to be parsedMethod Detail |
---|
public java.util.Iterator<java.lang.String> parameterSignatureIterator()
public java.lang.String getReturnTypeSignature()
public int getNumParameters()
public static int getNumParametersForInvocation(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg)
inv
- cpg
-
@CheckForNull public static java.util.Iterator<java.lang.String> getGenericSignatureIterator(org.apache.bcel.classfile.Method target)
target
- the method whose signature is to be parsed
public static boolean compareSignatures(java.lang.String plainSignature, java.lang.String genericSignature)
public static void main(java.lang.String[] args)
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |