public final class FieldId extends Object implements Comparable<FieldId>
| Constructor and Description |
|---|
FieldId(Dex dex,
int declaringClassIndex,
int typeIndex,
int nameIndex) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FieldId other)
Compares this object to the specified object to determine their relative
order.
|
int |
getDeclaringClassIndex() |
int |
getNameIndex() |
int |
getTypeIndex() |
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeTo(Dex.Section out) |
public FieldId(Dex dex, int declaringClassIndex, int typeIndex, int nameIndex)
public int getDeclaringClassIndex()
public int getTypeIndex()
public int getNameIndex()
public int compareTo(FieldId other)
ComparablecompareTo in interface Comparable<FieldId>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.