|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.rop.cst.Constant
com.android.dx.rop.cst.TypedConstant
com.android.dx.rop.cst.CstMemberRef
com.android.dx.rop.cst.CstFieldRef
public final class CstFieldRef
Constants of type CONSTANT_Fieldref_info.
| Constructor Summary | |
|---|---|
CstFieldRef(CstType definingClass,
CstNat nat)
Constructs an instance. |
|
| Method Summary | |
|---|---|
protected int |
compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed to be of the same class. |
static CstFieldRef |
forPrimitiveType(Type primitiveType)
Returns an instance of this class that represents the static field which should hold the class corresponding to a given primitive type. |
Type |
getType()
Returns the type of this field. |
String |
typeName()
Returns the human name for the particular type of constant this instance is. |
| Methods inherited from class com.android.dx.rop.cst.CstMemberRef |
|---|
equals, getDefiningClass, getNat, hashCode, isCategory2, toHuman, toString |
| Methods inherited from class com.android.dx.rop.cst.TypedConstant |
|---|
getBasicFrameType, getBasicType, getFrameType, isConstant |
| Methods inherited from class com.android.dx.rop.cst.Constant |
|---|
compareTo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CstFieldRef(CstType definingClass,
CstNat nat)
definingClass - non-null; the type of the defining classnat - non-null; the name-and-type| Method Detail |
|---|
public static CstFieldRef forPrimitiveType(Type primitiveType)
Type.INT, this
method returns an instance corresponding to the field
java.lang.Integer.TYPE.
primitiveType - non-null; the primitive type
non-null; the corresponding static fieldpublic String typeName()
typeName in class Constantnon-null; the namepublic Type getType()
non-null; the field's typeprotected int compareTo0(Constant other)
Note: This implementation just compares the defining
class and name, and it is up to subclasses to compare the rest
after calling super.compareTo0().
compareTo0 in class CstMemberRefother - non-null; the instance to compare to
-1, 0, or 1, as usual
for a comparison
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||