Package com.android.dx.rop.cst
Class CstEnumRef
java.lang.Object
com.android.dx.rop.cst.Constant
com.android.dx.rop.cst.TypedConstant
com.android.dx.rop.cst.CstMemberRef
com.android.dx.rop.cst.CstEnumRef
- All Implemented Interfaces:
TypeBearer
,ToHuman
,Comparable<Constant>
Constant type to represent a reference to a particular constant
value of an enumerated type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet aCstFieldRef
that corresponds with this instance.getType()
Gets the type associated with this instance.typeName()
Returns the human name for the particular type of constant this instance is.Methods inherited from class com.android.dx.rop.cst.CstMemberRef
compareTo0, equals, getDefiningClass, getNat, hashCode, isCategory2, toHuman, toString
Methods inherited from class com.android.dx.rop.cst.TypedConstant
getBasicFrameType, getBasicType, getFrameType, isConstant
-
Constructor Details
-
CstEnumRef
Constructs an instance.- Parameters:
nat
-non-null;
the name-and-type; the defining class is derived from this
-
-
Method Details
-
typeName
Returns the human name for the particular type of constant this instance is. -
getType
Gets the type associated with this instance. Note: This returns the enumerated type.- Returns:
non-null;
the type
-
getFieldRef
Get aCstFieldRef
that corresponds with this instance.- Returns:
non-null;
the corresponding field reference
-