Class CstMemberRef
java.lang.Object
com.android.dx.rop.cst.Constant
com.android.dx.rop.cst.TypedConstant
com.android.dx.rop.cst.CstMemberRef
- All Implemented Interfaces:
TypeBearer, ToHuman, Comparable<Constant>
- Direct Known Subclasses:
CstBaseMethodRef, CstEnumRef, CstFieldRef
Constants of type
CONSTANT_*ref_info.-
Method Summary
Modifier and TypeMethodDescriptionprotected intcompareTo0(Constant other) Compare the values of this and another instance, which are guaranteed to be of the same class.final booleanfinal CstTypeGets the type of the defining class.final CstNatgetNat()Gets the defining name-and-type.final inthashCode()final booleanReturnstrueif this instance is a category-2 constant, meaning it takes up two slots in the constant pool, orfalseif this instance is category-1.final StringtoHuman()Return the "human" string form of this instance.final StringtoString()Methods inherited from class TypedConstant
getBasicFrameType, getBasicType, getFrameType, isConstantMethods inherited from interface TypeBearer
getType
-
Method Details
-
equals
-
hashCode
-
compareTo0
Compare the values of this and another instance, which are guaranteed to be of the same class. Subclasses must implement this.Note: This implementation just compares the defining class and name, and it is up to subclasses to compare the rest after calling
super.compareTo0().- Specified by:
compareTo0in classConstant- Parameters:
other-non-null;the instance to compare to- Returns:
-1,0, or1, as usual for a comparison
-
toString
-
isCategory2
public final boolean isCategory2()Returnstrueif this instance is a category-2 constant, meaning it takes up two slots in the constant pool, orfalseif this instance is category-1.- Specified by:
isCategory2in classConstant- Returns:
trueiff this instance is category-2
-
toHuman
Return the "human" string form of this instance. This is generally less "debuggy" thantoString().- Returns:
non-null;the human string form
-
getDefiningClass
Gets the type of the defining class.- Returns:
non-null;the type of defining class
-
getNat
-