edu.umd.cs.findbugs.ba
public class SignatureConverter extends Object
Constructor Summary | |
---|---|
SignatureConverter(String signature)
Constructor.
|
Method Summary | |
---|---|
static String | convert(String signature)
Convenience method for converting a single signature component to
human-readable form.
|
static String | convertMethodSignature(JavaClass javaClass, Method method)
Convenience method for generating a method signature in
human readable form.
|
static String | convertMethodSignature(MethodGen methodGen)
Convenience method for generating a method signature in
human readable form.
|
static String | convertMethodSignature(InvokeInstruction inv, ConstantPoolGen cpg)
Convenience method for generating a method signature in
human readable form.
|
static String | convertMethodSignature(String className, String methodName, String methodSig)
Convenience method for generating a method signature in
human readable form.
|
static String | convertMethodSignature(XMethod xmethod)
Convenience method for generating a method signature in
human readable form.
|
static String | convertMethodSignature(String className, String methodName, String methodSig, String pkgName)
Convenience method for generating a method signature in
human readable form.
|
char | getFirst()
Get the first character of the remaining part of the signature. |
String | parseNext()
Parse a single type out of the signature, starting at the beginning
of the remaining part of the signature. |
static String | shorten(String pkgName, String typeName) |
void | skip()
Skip the first character of the remaining part of the signature. |
Parameters: signature the field or method signature to convert
Parameters: signature the signature
Parameters: javaClass the class method the method
Parameters: methodGen the method to produce a method signature for
Parameters: inv an InvokeInstruction cpg the ConstantPoolGen for the class the instruction belongs to
Parameters: className name of the class containing the method methodName the name of the method methodSig the signature of the method
Parameters: xmethod an XMethod
Returns: the formatted version of that signature
Parameters: className name of the class containing the method methodName the name of the method methodSig the signature of the method pkgName the name of the package the method is in (used to shorten class names)
Returns: the parsed type string