com.android.dx.rop.cst
Class CstEnumRef

java.lang.Object
  extended by com.android.dx.rop.cst.Constant
      extended by com.android.dx.rop.cst.TypedConstant
          extended by com.android.dx.rop.cst.CstMemberRef
              extended by com.android.dx.rop.cst.CstEnumRef
All Implemented Interfaces:
TypeBearer, ToHuman, Comparable<Constant>

public final class CstEnumRef
extends CstMemberRef

Constant type to represent a reference to a particular constant value of an enumerated type.


Constructor Summary
CstEnumRef(CstNat nat)
          Constructs an instance.
 
Method Summary
 CstFieldRef getFieldRef()
          Get a CstFieldRef that corresponds with this instance.
 Type getType()
          Gets the type associated with this instance.
 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
compareTo0, 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

CstEnumRef

public CstEnumRef(CstNat nat)
Constructs an instance.

Parameters:
nat - non-null; the name-and-type; the defining class is derived from this
Method Detail

typeName

public String typeName()
Returns the human name for the particular type of constant this instance is.

Specified by:
typeName in class Constant
Returns:
non-null; the name

getType

public Type getType()
Gets the type associated with this instance. Note: This returns the enumerated type.

Returns:
non-null; the type

getFieldRef

public CstFieldRef getFieldRef()
Get a CstFieldRef that corresponds with this instance.

Returns:
non-null; the corresponding field reference


Copyright © 2015. All rights reserved.