Package edu.umd.cs.findbugs.ba
Class SignatureParser
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.SignatureParser
-
@Deprecated public class SignatureParser extends java.lang.Object
Deprecated.This signature parser does not support generics, use GenericSignatureParser instead.A simple class to parse method signatures.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
SignatureParser.ParameterSignatureIterator
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description private int[]
parameterOffset
Deprecated.private java.lang.String
signature
Deprecated.private int
totalArgumentSize
Deprecated.
-
Constructor Summary
Constructors Constructor Description SignatureParser(java.lang.String signature)
Deprecated.Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String[]
getArguments()
Deprecated.int
getNumParameters()
Deprecated.Get the number of parameters in the signature.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.static int
getNumSlotsForType(java.lang.String sig)
Deprecated.Return how many stack frame slots a type whose signature is given will occupy.java.lang.String
getParameter(int pos)
Deprecated.(package private) int[]
getParameterOffset()
Deprecated.java.lang.String
getReturnTypeSignature()
Deprecated.Get the method return type signature.int
getSlotsFromTopOfStackForParameter(int paramNum)
Deprecated.int
getTotalArgumentSize()
Deprecated.boolean
hasReferenceParameters()
Deprecated.static boolean
isReferenceType(java.lang.String signature)
Deprecated.Determine whether or not given signature denotes a reference type.static void
main(java.lang.String[] args)
Deprecated.java.util.Iterator<java.lang.String>
parameterSignatureIterator()
Deprecated.Get an Iterator over signatures of the method parameters.java.lang.Iterable<java.lang.String>
parameterSignatures()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
getTotalArgumentSize
public int getTotalArgumentSize()
Deprecated.
-
getParameterOffset
@Nonnull int[] getParameterOffset()
Deprecated.
-
getSlotsFromTopOfStackForParameter
public int getSlotsFromTopOfStackForParameter(int paramNum)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
getArguments
public java.lang.String[] getArguments()
Deprecated.
-
parameterSignatureIterator
public java.util.Iterator<java.lang.String> parameterSignatureIterator()
Deprecated.Get an Iterator over signatures of the method parameters.- Returns:
- Iterator which returns the parameter type signatures in order
-
parameterSignatures
public java.lang.Iterable<java.lang.String> parameterSignatures()
Deprecated.
-
getReturnTypeSignature
public java.lang.String 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
public java.lang.String getParameter(int pos)
Deprecated.
-
isReferenceType
public static boolean isReferenceType(java.lang.String signature)
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
public static int getNumSlotsForType(java.lang.String sig)
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
public static void main(java.lang.String[] args)
Deprecated.
-
-