FileDocCategorySizeDatePackage
CstEnumRef.javaAPI DocAndroid 1.5 API1852Wed May 06 22:41:02 BST 2009com.android.dx.rop.cst

CstEnumRef

public final class CstEnumRef extends CstMemberRef
Constant type to represent a reference to a particular constant value of an enumerated type.

Fields Summary
private CstFieldRef
fieldRef
null-ok; the corresponding field ref, lazily initialized
Constructors Summary
public CstEnumRef(CstNat nat)
Constructs an instance.

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

        super(new CstType(nat.getFieldType()), nat);

        fieldRef = null;
    
Methods Summary
public CstFieldRefgetFieldRef()
Get a {@link CstFieldRef} that corresponds with this instance.

return
non-null; the corresponding field reference

        if (fieldRef == null) {
            fieldRef = new CstFieldRef(getDefiningClass(), getNat());
        }

        return fieldRef;
    
public com.android.dx.rop.type.TypegetType()
{@inheritDoc} Note: This returns the enumerated type.

        return getDefiningClass().getClassType();
    
public java.lang.StringtypeName()
{@inheritDoc}

        return "enum";