Class SignatureParser
java.lang.Object
edu.umd.cs.findbugs.ba.SignatureParser
Deprecated.
This signature parser does not support generics, use GenericSignatureParser instead.
A simple class to parse method signatures.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]Deprecated.private final StringDeprecated.private intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Deprecated.intDeprecated.Get the number of parameters in the signature.static intgetNumParametersForInvocation(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg) Deprecated.Get the number of parameters passed to method invocation.static intgetNumSlotsForType(String sig) Deprecated.Return how many stack frame slots a type whose signature is given will occupy.getParameter(int pos) Deprecated.(package private) int[]Deprecated.Deprecated.Get the method return type signature.intgetSlotsFromTopOfStackForParameter(int paramNum) Deprecated.intDeprecated.booleanDeprecated.static booleanisReferenceType(String signature) Deprecated.Determine whether or not given signature denotes a reference type.static voidDeprecated.Deprecated.Get an Iterator over signatures of the method parameters.Deprecated.toString()Deprecated.
-
Field Details
-
totalArgumentSize
private int totalArgumentSizeDeprecated. -
parameterOffset
@CheckForNull private int[] parameterOffsetDeprecated. -
signature
Deprecated.
-
-
Constructor Details
-
SignatureParser
Deprecated.Constructor.- Parameters:
signature- the method signature to be parsed
-
-
Method Details
-
getTotalArgumentSize
public int getTotalArgumentSize()Deprecated. -
getParameterOffset
@Nonnull int[] getParameterOffset()Deprecated. -
getSlotsFromTopOfStackForParameter
public int getSlotsFromTopOfStackForParameter(int paramNum) Deprecated. -
toString
-
getArguments
Deprecated. -
parameterSignatureIterator
-
parameterSignatures
-
getReturnTypeSignature
Deprecated.Get the method return type signature.- Returns:
- the method return type signature
-
getNumParameters
public int getNumParameters()Deprecated.Get the number of parameters in the signature.- Returns:
- the number of parameters
-
hasReferenceParameters
public boolean hasReferenceParameters()Deprecated. -
getParameter
Deprecated. -
isReferenceType
Deprecated.Determine whether or not given signature denotes a reference type.- Parameters:
signature- a signature- Returns:
- true if signature denotes a reference type, false otherwise
-
getNumParametersForInvocation
public static int getNumParametersForInvocation(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg) Deprecated.Get the number of parameters passed to method invocation.- Parameters:
inv-cpg-- Returns:
- int number of parameters
-
getNumSlotsForType
Deprecated.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- Returns:
- number of stack frame slots a value of the given type will occupy
-
main
Deprecated.
-