public class JavaEnumType extends InnerClassCapableType implements IJavaEnumTypeInternal, IJavaEnumType
| Modifier and Type | Field and Description |
|---|---|
protected IJavaClassInfo |
_classInfo |
TYPES_BY_CLASSEMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST| Constructor and Description |
|---|
JavaEnumType(Class cls,
DefaultTypeLoader loader) |
JavaEnumType(IJavaClassInfo cls,
DefaultTypeLoader loader) |
resolveRelativeInnerClassgetLiteralMetaType, getMetaTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitassignGenericTypeVariables, getAdapterClass, getAdapterClassDirectly, getExplicitTypeInfo, getSimpleName, getTypeInfoChecksum, hasAncestorBeenUpdated, isDefiningGenericTypes, setAdapterClass, setComponentType, writeReplacegetConcreteClasscompile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericType, 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, unloadTypeInfocreateAdapterClass, getBackingClassInfo, getGenericType, getInnerClasses, getIntrinsicClass, getRetainedMemorygetTypeFromJavaBackedTypegetBackingClassgetInnerClass, getLoadedInnerClasses, resolveRelativeInnerClassgetClassType, getJavaName, getSourceFileHandlegetLoaderParameterizedTypes, isStrictGenericsisAnnotationprotected transient IJavaClassInfo _classInfo
public JavaEnumType(Class cls, DefaultTypeLoader loader)
public JavaEnumType(IJavaClassInfo cls, DefaultTypeLoader loader)
public IType getEnumType()
getEnumType in interface IJavaEnumTypeInternalpublic List<String> getEnumConstants()
getEnumConstants in interface IEnumDatapublic List<IEnumValue> getEnumValues()
getEnumValues in interface IEnumDatapublic IEnumValue getEnumValue(String strName)
getEnumValue in interface IEnumDatapublic static IJavaTypeInternal get(Class cls, DefaultTypeLoader loader)
public static IJavaTypeInternal create(IJavaClassInfo cls, DefaultTypeLoader loader)
public boolean isDefiningGenericTypes()
isDefiningGenericTypes in interface IJavaTypeInternalpublic GenericTypeVariable[] assignGenericTypeVariables()
assignGenericTypeVariables in interface IJavaTypeInternalpublic DefaultTypeLoader getTypeLoader()
getTypeLoader in interface ITypepublic String getDisplayName()
getDisplayName in interface ITypepublic String getRelativeName()
getRelativeName in interface ITypepublic String getSimpleName()
getSimpleName in interface IJavaTypeInternalpublic String getNamespace()
getNamespace in interface ITypepublic boolean isPrimitive()
isPrimitive in interface ITypepublic Object makeArrayInstance(int iLength)
makeArrayInstance in interface ITypepublic boolean isAssignableFrom(IType type)
isAssignableFrom in interface ITypepublic boolean isMutable()
public Class getIntrinsicClass()
getIntrinsicClass in interface IJavaTypepublic IJavaClassInfo getBackingClassInfo()
getBackingClassInfo in interface IJavaBackedTypeDatagetBackingClassInfo in interface IJavaTypepublic Class getBackingClass()
getBackingClass in interface IHasJavaClasspublic ITypeInfo getTypeInfo()
getTypeInfo in interface ITypepublic IGosuClassInternal getAdapterClass()
getAdapterClass in interface IJavaTypeInternalgetAdapterClass in interface IJavaTypepublic IGosuClassInternal getAdapterClassDirectly()
getAdapterClassDirectly in interface IJavaTypeInternalpublic void unloadTypeInfo()
unloadTypeInfo in interface ITypepublic boolean isInterface()
isInterface in interface ITypepublic IType[] getInterfaces()
getInterfaces in interface ITypepublic IType getSupertype()
getSupertype in interface ITypepublic List<IJavaType> getInnerClasses()
getInnerClasses in interface IHasInnerClassgetInnerClasses in interface IJavaTypepublic IType getInnerClass(CharSequence name)
getInnerClass in interface IHasInnerClasspublic ISourceFileHandle getSourceFileHandle()
getSourceFileHandle in interface IFileRepositoryBasedTypepublic List<? extends IType> getLoadedInnerClasses()
getLoadedInnerClasses in interface IHasInnerClasspublic ClassType getClassType()
getClassType in interface IFileRepositoryBasedTypepublic IType getEnclosingType()
getEnclosingType in interface ITypepublic IJavaTypeInternal getGenericType()
getGenericType in interface ITypegetGenericType in interface IJavaTypepublic boolean isParameterizedType()
isParameterizedType in interface ITypepublic boolean isGenericType()
isGenericType in interface ITypepublic GenericTypeVariable[] getGenericTypeVariables()
getGenericTypeVariables in interface ITypepublic IType[] getTypeParameters()
getTypeParameters in interface ITypepublic IType getParameterizedType(IType... paramTypes)
getParameterizedType in interface ITypepublic Set<IType> getAllTypesInHierarchy()
getAllTypesInHierarchy in interface ITypepublic IType getArrayType()
getArrayType in interface ITypepublic Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
getArrayComponent in interface ITypeIllegalArgumentExceptionArrayIndexOutOfBoundsExceptionpublic void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
setArrayComponent in interface ITypeIllegalArgumentExceptionArrayIndexOutOfBoundsExceptionpublic int getArrayLength(Object array) throws IllegalArgumentException
getArrayLength in interface ITypeIllegalArgumentExceptionpublic IJavaTypeInternal getComponentType()
getComponentType in interface ITypepublic void setComponentType(IJavaTypeInternal componentType)
setComponentType in interface IJavaTypeInternalpublic int getTypeInfoChecksum()
getTypeInfoChecksum in interface IJavaTypeInternalpublic boolean hasAncestorBeenUpdated()
hasAncestorBeenUpdated in interface IJavaTypeInternalpublic static boolean hasBeenUpdated(IJavaTypeInternal type, int tiChecksum, Set<IType> visited)
public Object writeReplace()
writeReplace in interface IJavaTypeInternalpublic Object readResolve() throws ObjectStreamException
readResolve in interface ITypeObjectStreamExceptionpublic int getModifiers()
getModifiers in interface ITypepublic boolean isAbstract()
isAbstract in interface ITypepublic ITypeInfo getExplicitTypeInfo()
getExplicitTypeInfo in interface IJavaTypeInternalpublic void setAdapterClass(IGosuClassInternal adapterClass)
setAdapterClass in interface IJavaTypeInternalpublic IGosuClassInternal createAdapterClass()
createAdapterClass in interface IJavaTypepublic static void unloadTypes()
public boolean isDiscarded()
isDiscarded in interface ITypepublic void setDiscarded(boolean bDiscarded)
setDiscarded in interface ITypepublic boolean isCompoundType()
isCompoundType in interface ITypepublic Set<IType> getCompoundTypeComponents()
getCompoundTypeComponents in interface ITypepublic IJavaClassInfo getConcreteClass()
getConcreteClass in interface IDefaultArrayTypepublic IType getTypeFromJavaBackedType()
getTypeFromJavaBackedType in interface IJavaBackedTypepublic ObjectSize getRetainedMemory()
getRetainedMemory in interface IJavaTypepublic IType[] getLoaderParameterizedTypes()
getLoaderParameterizedTypes in interface IParameterizableTypepublic boolean isStrictGenerics()
isStrictGenerics in interface IParameterizableTypepublic IFile[] getSourceFiles()
getSourceFiles in interface ITypepublic boolean isAnnotation()
isAnnotation in interface ICanBeAnnotationpublic IFunctionType getFunctionalInterface()
getFunctionalInterface in interface ITypeprotected IType getTheRef()
getTheRef in class AbstractTypepublic boolean isCompilable()
isCompilable in interface ITypeCopyright © 2017. All rights reserved.