public final class MethodId extends Object implements Comparable<MethodId>
| Constructor and Description |
|---|
MethodId(Dex dex,
int declaringClassIndex,
int protoIndex,
int nameIndex) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MethodId other)
Compares this object to the specified object to determine their relative
order.
|
int |
getDeclaringClassIndex() |
int |
getNameIndex() |
int |
getProtoIndex() |
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeTo(Dex.Section out) |
public MethodId(Dex dex, int declaringClassIndex, int protoIndex, int nameIndex)
public int getDeclaringClassIndex()
public int getProtoIndex()
public int getNameIndex()
public int compareTo(MethodId other)
ComparablecompareTo in interface Comparable<MethodId>other - the object to compare to this instance.another;
a positive integer if this instance is greater than
another; 0 if this instance has the same order as
another.public void writeTo(Dex.Section out)
public String toString()
ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.