Package gw.internal.gosu.parser
Class JavaEnumType
- java.lang.Object
-
- gw.lang.reflect.AbstractType
-
- gw.lang.reflect.InnerClassCapableType
-
- gw.internal.gosu.parser.JavaType
-
- gw.internal.gosu.parser.JavaEnumType
-
- All Implemented Interfaces:
IJavaEnumTypeInternal,IJavaTypeInternal,IParameterizableType,IFileRepositoryBasedType,IHasInnerClass,ICanBeAnnotation,IDefaultArrayType,IEnhanceableType,IEnumData,IEnumType,IHasJavaClass,IType,IJavaArrayType,IJavaBackedType,IJavaBackedTypeData,IJavaEnumType,IJavaType,java.io.Serializable
public class JavaEnumType extends JavaType implements IJavaEnumTypeInternal, IJavaEnumType
Provides an implementation of IEnumeratedType for java enums- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classJavaEnumType.EnumAdapter
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IEnumValue>_enumVals-
Fields inherited from class gw.internal.gosu.parser.JavaType
_classInfo
-
Fields inherited from interface gw.internal.gosu.parser.IJavaTypeInternal
TYPES_BY_CLASS
-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Constructor Summary
Constructors Constructor Description JavaEnumType(IJavaClassInfo cls, DefaultTypeLoader loader)JavaEnumType(java.lang.Class cls, DefaultTypeLoader loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getEnumConstants()ITypegetEnumType()IEnumValuegetEnumValue(java.lang.String strName)java.util.List<IEnumValue>getEnumValues()-
Methods inherited from class gw.internal.gosu.parser.JavaType
assignGenericTypeVariables, compile, computeQualifiedName, convertClassArray, create, createAdapterClass, equals, get, getAdapterClass, getAdapterClassDirectly, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getBackingClass, getBackingClassInfo, getClassType, getComponentType, getCompoundTypeComponents, getConcreteClass, getDisplayName, getEnclosingType, getExplicitTypeInfo, getFunctionalInterface, getGenericType, getGenericTypeVariables, getInnerClass, getInnerClasses, getInterfaces, getIntrinsicClass, getLoadedInnerClasses, getLoaderParameterizedTypes, getModifiers, getName, getNamespace, getParameterizedType, getPrimitiveType, getRelativeName, getRetainedMemory, getSimpleName, getSourceFileHandle, getSourceFiles, getSupertype, getTheRef, getTypeFromJavaBackedType, getTypeInfo, getTypeInfoChecksum, getTypeLoader, getTypeParameters, hasAncestorBeenUpdated, hasBeenUpdated, hashCode, isAbstract, isAnnotation, isArray, isAssignableFrom, isCompilable, isCompoundType, isDefiningGenericTypes, isDiscarded, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isStrictGenerics, isValid, makeArrayInstance, readResolve, setAdapterClass, setArrayComponent, setComponentType, setDiscarded, toString, unloadTypeInfo, unloadTypes, writeReplace
-
Methods inherited from class gw.lang.reflect.InnerClassCapableType
resolveRelativeInnerClass
-
Methods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.ICanBeAnnotation
isAnnotation
-
Methods inherited from interface gw.lang.reflect.IDefaultArrayType
getConcreteClass
-
Methods inherited from interface gw.lang.parser.IFileRepositoryBasedType
getClassType, getJavaName, getSourceFileHandle
-
Methods inherited from interface gw.lang.parser.IHasInnerClass
getInnerClass, getLoadedInnerClasses, resolveRelativeInnerClass
-
Methods inherited from interface gw.lang.reflect.IHasJavaClass
getBackingClass
-
Methods inherited from interface gw.lang.reflect.java.IJavaBackedType
getTypeFromJavaBackedType
-
Methods inherited from interface gw.lang.reflect.java.IJavaType
createAdapterClass, getBackingClassInfo, getGenericType, getInnerClasses, getIntrinsicClass, getRetainedMemory
-
Methods inherited from interface gw.internal.gosu.parser.IJavaTypeInternal
assignGenericTypeVariables, getAdapterClass, getAdapterClassDirectly, getExplicitTypeInfo, getSimpleName, getTypeInfoChecksum, hasAncestorBeenUpdated, isDefiningGenericTypes, setAdapterClass, setComponentType, writeReplace
-
Methods inherited from interface gw.internal.gosu.parser.IParameterizableType
getLoaderParameterizedTypes, isStrictGenerics
-
Methods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSourceFiles, getSupertype, getTypeInfo, getTypeLoader, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArrayComponent, setDiscarded, unloadTypeInfo
-
-
-
-
Field Detail
-
_enumVals
private java.util.List<IEnumValue> _enumVals
-
-
Constructor Detail
-
JavaEnumType
public JavaEnumType(java.lang.Class cls, DefaultTypeLoader loader)
-
JavaEnumType
public JavaEnumType(IJavaClassInfo cls, DefaultTypeLoader loader)
-
-
Method Detail
-
getEnumType
public IType getEnumType()
- Specified by:
getEnumTypein interfaceIJavaEnumTypeInternal
-
getEnumConstants
public java.util.List<java.lang.String> getEnumConstants()
- Specified by:
getEnumConstantsin interfaceIEnumData
-
getEnumValues
public java.util.List<IEnumValue> getEnumValues()
- Specified by:
getEnumValuesin interfaceIEnumData
-
getEnumValue
public IEnumValue getEnumValue(java.lang.String strName)
- Specified by:
getEnumValuein interfaceIEnumData
-
-