public class MethodSignature extends java.lang.Object implements java.lang.Comparable<MethodSignature>
Type. Once a
MethodSignature is created it is never modified.
Note: this is similar to the Randoop randoop.reflection.RawSignature class, but uses
BCEL Type instead of java.lang.reflect.Class for the parameter types.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MethodSignature m) |
boolean |
equals(@Nullable java.lang.Object obj) |
int |
hashCode() |
static MethodSignature |
of(java.lang.String classname,
org.apache.bcel.classfile.Method method)
Creates a
MethodSignature object for a org.apache.bcel.classfile.Method object. |
java.lang.String |
toString()
Returns the fully-qualified signature string for this
MethodSignature. |
public static MethodSignature of(java.lang.String classname, org.apache.bcel.classfile.Method method)
MethodSignature object for a org.apache.bcel.classfile.Method object.classname - the class containing the methodmethod - the Method objectMethodSignature representation of the Method objectpublic boolean equals(@Nullable java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(MethodSignature m)
compareTo in interface java.lang.Comparable<MethodSignature>public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
MethodSignature.toString in class java.lang.ObjectMethodSignature