Package gw.internal.gosu.parser
Class JavaEnumType.EnumAdapter
- java.lang.Object
-
- gw.internal.gosu.parser.JavaEnumType.EnumAdapter
-
- All Implemented Interfaces:
IGosuObject,IEnumConstant,IEnumValue
- Enclosing class:
- JavaEnumType
private class JavaEnumType.EnumAdapter extends java.lang.Object implements IEnumValue, IGosuObject
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Enum_enum
-
Constructor Summary
Constructors Constructor Description EnumAdapter(java.lang.Enum e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()java.lang.StringgetDisplayName()ITypegetIntrinsicType()intgetOrdinal()java.lang.ObjectgetValue()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.gs.IGosuObject
equals, hashCode, toString
-
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
- Specified by:
getCodein interfaceIEnumConstant
-
getValue
public java.lang.Object getValue()
- Specified by:
getValuein interfaceIEnumValue- Returns:
- The enum constant instance
-
getOrdinal
public int getOrdinal()
- Specified by:
getOrdinalin interfaceIEnumConstant
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayNamein interfaceIEnumConstant
-
getIntrinsicType
public IType getIntrinsicType()
- Specified by:
getIntrinsicTypein interfaceIGosuObject
-
-