public class JEnumType extends JClassType
JDeclaredType.JsInteropType
HasName.Util
fields, jsInteropType, jsPrototype, methods
BY_NAME_COMPARATOR
Constructor and Description |
---|
JEnumType(SourceInfo info,
String name,
boolean isAbstract) |
JEnumType(SourceInfo info,
String name,
boolean isAbstract,
JDeclaredType.JsInteropType interopType) |
Modifier and Type | Method and Description |
---|---|
void |
addField(JField field)
Adds a field to this type.
|
List<JEnumField> |
getEnumList()
Returns the list of enum fields in this enum.
|
JEnumType |
isEnumOrSubclass()
Returns the (closest) enum supertype if the type is a subclass of an enum; it returns
this if this is a JEnumType} and null otherwise. |
boolean |
isOrdinalized() |
void |
setOrdinalized() |
getSuperClass, isAbstract, isFinal, isJsPrototypeStub, setFinal, setJsPrototypeStub, setSuperClass, traverse, writeReplace
addImplements, addMethod, checkClinitTo, findMethod, findSubtype, getClinitMethod, getClinitTarget, getCompoundName, getEnclosingType, getFields, getImplements, getInitMethod, getJavahSignatureName, getJsInteropType, getJsNamespace, getJsniSignatureName, getJsPrototype, getMethods, getQualifiedExportName, hasClinit, isExternal, isInstantiable, isJsType, removeField, removeMethod, resolve, setEnclosingType, setExternal, setJsNamespace, sortFields, sortMethods
canBeNull, getDefaultValue, getNonNull, getUnderlyingType, replaces
getName, getPackageName, getShortName
getSourceInfo, setSourceInfo, toSource, toString
public JEnumType(SourceInfo info, String name, boolean isAbstract)
public JEnumType(SourceInfo info, String name, boolean isAbstract, JDeclaredType.JsInteropType interopType)
public void addField(JField field)
JDeclaredType
addField
in class JDeclaredType
public List<JEnumField> getEnumList()
public JEnumType isEnumOrSubclass()
JType
this
if this
is a
JEnumType} and null
otherwise.isEnumOrSubclass
in class JClassType
public boolean isOrdinalized()
public void setOrdinalized()
Copyright © 2016. All rights reserved.