com.google.gwt.core.ext.typeinfo
Class JEnumType

java.lang.Object
  extended by com.google.gwt.core.ext.typeinfo.JType
      extended by com.google.gwt.core.ext.typeinfo.JClassType
          extended by com.google.gwt.core.ext.typeinfo.JRealClassType
              extended by 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)
           
 
Method Summary
 JEnumConstant[] getEnumConstants()
          Returns the enumeration constants declared by this enumeration.
 JEnumType isEnum()
          Returns this instance if it is an enumeration or null if it is not.
 
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 com.google.gwt.core.ext.typeinfo.JType
equals, getLeafType, getParameterizedQualifiedSourceName, hashCode, isAnnotation, isClassOrInterface, isTypeParameter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JEnumType

public JEnumType(TypeOracle oracle,
                 JPackage declaringPackage,
                 java.lang.String enclosingTypeName,
                 boolean isLocalType,
                 java.lang.String name,
                 boolean isInterface)
Method Detail

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