com.google.gwt.core.ext.typeinfo
Class JEnumType
java.lang.Object
com.google.gwt.core.ext.typeinfo.JType
com.google.gwt.core.ext.typeinfo.JClassType
com.google.gwt.core.ext.typeinfo.JRealClassType
com.google.gwt.core.ext.typeinfo.JEnumType
- All Implemented Interfaces:
- HasAnnotations, HasMetaData
public class JEnumType
- extends JRealClassType
Type representing a Java enumerated type.
Constructor Summary |
JEnumType(TypeOracle oracle,
JPackage declaringPackage,
java.lang.String enclosingTypeName,
boolean isLocalType,
java.lang.String name,
boolean isInterface)
|
Methods inherited from class com.google.gwt.core.ext.typeinfo.JRealClassType |
acceptSubtype, addAnnotations, addConstructor, addField, addImplementedInterface, addMethod, addModifierBits, addNestedType, findConstructor, findField, findMethod, findNestedType, findNestedTypeImpl, getAnnotation, getConstructor, getConstructors, getEnclosingType, getErasedType, getField, getFields, getImplementedInterfaces, getJNISignature, getMethod, getMethods, getModifierBits, getName, getNestedType, getNestedTypes, getOracle, getOverloads, getOverridableMethods, getOverridableMethodsOnSuperclassesAndThisClass, getOverridableMethodsOnSuperinterfacesAndMaybeThisInterface, getPackage, getQualifiedBinaryName, getQualifiedSourceName, getSimpleSourceName, getSubtypes, getSuperclass, isAbstract, isAnnotationPresent, isArray, isClass, isDefaultInstantiable, isFinal, isGenericType, isInterface, isLocalType, isMemberType, isParameterized, isPrimitive, isPrivate, isProtected, isPublic, isRawType, isStatic, isWildcard, notifySuperTypesOf, removeSubtype, setEnclosingType, setSuperclass, toString |
Methods inherited from class com.google.gwt.core.ext.typeinfo.JClassType |
addMetaData, asParameterizationOf, findAnnotationInTypeHierarchy, getFlattenedSuperTypeHierarchy, getMetaData, getMetaDataTags, isAssignableFrom, isAssignableTo, isEnhanced, isMaybeParameterizedType, setEnhanced |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JEnumType
public JEnumType(TypeOracle oracle,
JPackage declaringPackage,
java.lang.String enclosingTypeName,
boolean isLocalType,
java.lang.String name,
boolean isInterface)
getEnumConstants
public JEnumConstant[] getEnumConstants()
- Returns the enumeration constants declared by this enumeration.
- Returns:
- enumeration constants declared by this enumeration
isEnum
public JEnumType isEnum()
- Description copied from class:
JType
- Returns this instance if it is an enumeration or
null
if it
is not.
- Overrides:
isEnum
in class JRealClassType
- Returns:
- this instance if it is an enumeration or
null
if it
is not