public class MethodSignature
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
descriptor
The descriptor of the method.
|
java.lang.String |
name
The name of the method.
|
Constructor and Description |
---|
MethodSignature(java.lang.String name,
java.lang.String descriptor)
Constructs a new
MethodSignature . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Checks if two
MethodSignature s represent the same method. |
int |
hashCode()
Calculates a hash based on name and descriptor.
|
public final java.lang.String name
public final java.lang.String descriptor
public MethodSignature(java.lang.String name, java.lang.String descriptor)
MethodSignature
. The parameters should be
either plain or mapped in the same way;name
- the method namedescriptor
- the method descriptorpublic boolean equals(java.lang.Object o)
MethodSignature
s represent the same method.equals
in class java.lang.Object
o
- the other signaturepublic int hashCode()
hashCode
in class java.lang.Object