public class SignatureParser
extends java.lang.Object
Constructor and Description |
---|
SignatureParser(java.lang.String signature)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getArguments() |
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.
|
static int |
getNumSlotsForType(java.lang.String sig)
Return how many stack frame slots a type whose signature is given will
occupy.
|
java.lang.String |
getParameter(int pos) |
java.lang.String |
getReturnTypeSignature()
Get the method return type signature.
|
int |
getSlotsFromTopOfStackForParameter(int paramNum) |
int |
getTotalArgumentSize() |
boolean |
hasReferenceParameters() |
static boolean |
isReferenceType(java.lang.String signature)
Determine whether or not given signature denotes a reference type.
|
static void |
main(java.lang.String[] args) |
java.util.Iterator<java.lang.String> |
parameterSignatureIterator()
Get an Iterator over signatures of the method parameters.
|
java.lang.Iterable<java.lang.String> |
parameterSignatures() |
java.lang.String |
toString() |
public SignatureParser(java.lang.String signature)
signature
- the method signature to be parsedpublic int getTotalArgumentSize()
public int getSlotsFromTopOfStackForParameter(int paramNum)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getArguments()
public java.util.Iterator<java.lang.String> parameterSignatureIterator()
public java.lang.Iterable<java.lang.String> parameterSignatures()
public java.lang.String getReturnTypeSignature()
public int getNumParameters()
public boolean hasReferenceParameters()
public java.lang.String getParameter(int pos)
public static boolean isReferenceType(java.lang.String signature)
signature
- a signaturepublic static int getNumParametersForInvocation(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg)
inv
- cpg
- public static int getNumSlotsForType(java.lang.String sig)
sig
- a type signaturepublic static void main(java.lang.String[] args)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.