Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.rop.cst

public final Class CstEnumRef

extends CstMemberRef
Class Inheritance
Imports
org.droidparts.dexmaker.dx.rop.type.Type

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

Field Summary

Modifier and TypeField and Description
private CstFieldRef
fieldRef

null-ok; the corresponding field ref, lazily initialized

Constructor Summary

AccessConstructor and Description
public
CstEnumRef(CstNat
non-null; the name-and-type; the defining class is derived from this
nat
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public CstFieldRef

Returns:

non-null; the corresponding field reference
getFieldRef
()

Get a CstFieldRef that corresponds with this instance.

public Type
getType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getType.

Gets the type associated with this instance.
public String
typeName()

Implements abstract org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Returns the human name for the particular type of constant this instance is.
Inherited from org.droidparts.dexmaker.dx.rop.cst.CstMemberRef:
compareTo0equalsgetDefiningClassgetNathashCodeisCategory2toHumantoString

Field Detail

fieldRefback to summary
private CstFieldRef fieldRef

null-ok; the corresponding field ref, lazily initialized

Constructor Detail

CstEnumRefback to summary
public CstEnumRef(CstNat nat)

Constructs an instance.

Parameters
nat:CstNat

non-null; the name-and-type; the defining class is derived from this

Method Detail

getFieldRefback to summary
public CstFieldRef getFieldRef()

Get a CstFieldRef that corresponds with this instance.

Returns:CstFieldRef

non-null; the corresponding field reference

getTypeback to summary
public Type getType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getType.

Doc from org.droidparts.dexmaker.dx.rop.type.TypeBearer.getType.

Gets the type associated with this instance.

Note

This returns the enumerated type.

Returns:Type

non-null; the type

typeNameback to summary
public String typeName()

Implements abstract org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Doc from org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Returns the human name for the particular type of constant this instance is.

Returns:String

non-null; the name

Annotations
@Override