CstEnumRefpublic final class CstEnumRef extends CstMemberRef Constant type to represent a reference to a particular constant
value of an enumerated type. |
Fields Summary |
---|
private CstFieldRef | fieldRefnull-ok; the corresponding field ref, lazily initialized |
Constructors Summary |
---|
public CstEnumRef(CstNat nat)Constructs an instance.
super(new CstType(nat.getFieldType()), nat);
fieldRef = null;
|
Methods Summary |
---|
public CstFieldRef | getFieldRef()Get a {@link CstFieldRef} that corresponds with this instance.
if (fieldRef == null) {
fieldRef = new CstFieldRef(getDefiningClass(), getNat());
}
return fieldRef;
| public com.android.dx.rop.type.Type | getType(){@inheritDoc}
Note: This returns the enumerated type.
return getDefiningClass().getClassType();
| public java.lang.String | typeName(){@inheritDoc}
return "enum";
|
|