Package ftbsc.lll.mapper.data
Class MethodSignature
- java.lang.Object
-
- ftbsc.lll.mapper.data.MethodSignature
-
public class MethodSignature extends java.lang.Object
Container class for method signature data.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
descriptor
The descriptor of the method.java.lang.String
name
The name of the method.
-
Constructor Summary
Constructors Constructor Description MethodSignature(java.lang.String name, java.lang.String descriptor)
Constructs a newMethodSignature
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Checks if twoMethodSignature
s represent the same method.int
hashCode()
Calculates a hash based on name and descriptor.
-
-
-
Constructor Detail
-
MethodSignature
public MethodSignature(java.lang.String name, java.lang.String descriptor)
Constructs a newMethodSignature
. The parameters should be either plain or mapped in the same way;- Parameters:
name
- the method namedescriptor
- the method descriptor
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Checks if twoMethodSignature
s represent the same method.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- the other signature- Returns:
- whether they represent the same method
-
hashCode
public int hashCode()
Calculates a hash based on name and descriptor.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash code
-
-