public class JEnumType extends JClassType
HasName.Util
Modifier and Type | Field and Description |
---|---|
static String |
VALUES_ARRAY_NAME |
artificialRescues, fields, methods
Constructor and Description |
---|
JEnumType(SourceInfo info,
String name,
boolean isAbstract) |
Modifier and Type | Method and Description |
---|---|
void |
addField(JField field)
Adds a field to this type.
|
String |
getClassLiteralFactoryMethod() |
List<JEnumField> |
getEnumList()
Returns the list of enum fields in this enum.
|
JEnumType |
isEnumOrSubclass() |
boolean |
isOrdinalized() |
void |
setOrdinalized() |
getSuperClass, isAbstract, isFinal, setFinal, setSuperClass, traverse, writeReplace
addArtificialRescue, addImplements, addMethod, checkClinitTo, findSubtype, getArtificialRescues, getClinitMethod, getClinitTarget, getEnclosingType, getFields, getImplements, getInitMethod, getJavahSignatureName, getJsniSignatureName, getMethods, getShortName, hasClinit, isExternal, removeField, removeMethod, resetClinitTarget, resolve, setEnclosingType, setExternal, sortFields, sortMethods
canBeNull, getDefaultValue, getNonNull, getUnderlyingType, replaces
getSourceInfo, setSourceInfo, toSource, toString
public static final String VALUES_ARRAY_NAME
public JEnumType(SourceInfo info, String name, boolean isAbstract)
public void addField(JField field)
JDeclaredType
addField
in class JDeclaredType
public String getClassLiteralFactoryMethod()
getClassLiteralFactoryMethod
in class JClassType
public List<JEnumField> getEnumList()
public JEnumType isEnumOrSubclass()
isEnumOrSubclass
in class JClassType
public boolean isOrdinalized()
public void setOrdinalized()
Copyright © 2018. All rights reserved.