| |
|
| java.lang.Object edu.umd.cs.findbugs.ba.SignatureParser
SignatureParser | public class SignatureParser (Code) | | A simple class to parse method signatures.
author: David Hovemeyer |
parameterOffset | int parameterOffset(Code) | | |
totalArgumentSize | int totalArgumentSize(Code) | | |
SignatureParser | public SignatureParser(String signature)(Code) | | Constructor.
Parameters: signature - the method signature to be parsed |
getNumParameters | public int getNumParameters()(Code) | | Get the number of parameters in the signature.
the number of parameters |
getNumParametersForInvocation | public static int getNumParametersForInvocation(InvokeInstruction inv, ConstantPoolGen cpg)(Code) | | Get the number of parameters passed to method invocation.
Parameters: inv - Parameters: cpg - int number of parameters |
getNumSlotsForType | public static int getNumSlotsForType(String sig)(Code) | | Return how many stack frame slots a type whose signature
is given will occupy. long and double values take 2 slots,
while all other kinds of values take 1 slot.
Parameters: sig - a type signature number of stack frame slots a value of the given type will occupy |
getReturnTypeSignature | public String getReturnTypeSignature()(Code) | | Get the method return type signature.
the method return type signature |
getSlotsFromTopOfStackForParameter | public int getSlotsFromTopOfStackForParameter(int paramNum)(Code) | | |
hasReferenceParameters | public boolean hasReferenceParameters()(Code) | | |
isReferenceType | public static boolean isReferenceType(String signature)(Code) | | Determine whether or not given signature denotes a reference type.
Parameters: signature - a signature true if signature denotes a reference type, false otherwise |
parameterSignatureIterator | public Iterator<String> parameterSignatureIterator()(Code) | | Get an Iterator over signatures of the method parameters.
Iterator which returns the parameter type signatures in order |
|
|
|