public class GeneratedEnum extends GeneratedClass
Modifier and Type | Field and Description |
---|---|
protected Map<String,GeneratedEnumConstant> |
byname |
protected List<GeneratedEnumConstant> |
constants |
blocks, constructors, fields, innerClasses, interfaces, metaPackage, methods, ordered, parentSource, rootClass, superClass
enclosing, name
getRawType, refer
format
Modifier and Type | Method and Description |
---|---|
GeneratedEnumConstant |
addConstant(String id,
Format... params) |
GeneratedEnumConstant |
addConstant(String id,
Formattable... params) |
List<GeneratedEnumConstant> |
getConstants() |
void |
setSuperClass(MetaType sup) |
addAnonymousClass, addAnonymousClass, addBlock, addBlock, addClass, addConstructor, addConstructor, addDeclarations, addDirt, addEnum, addField, addField, addImport, addImport, addInnerClass, addInnerClass, addInnerClass, addInnerEnum, addInterface, addInterface, addMethod, addMethod, addTypeParameter, format, getClasses, getConstructors, getElementClass, getEnclosingClass, getFields, getImportPattern, getImports, getInnerClass, getInnerClass, getInnerClasses, getInterfaces, getMethods, getOrderedMembers, getPackage, getPackageName, getParentContext, getParentSourceContext, getQualifiedName, getRawType, getSimpleName, getSourceFile, getSuperClass, getTypeParameters, isArray, isPrimitive, refer, referTo, referTo, setSuperClass
addTypeVariable, addTypeVariable, getName, getTypeVariables
getModifiers, setModifiers
addAnnotation, addAnnotation, addAnnotation, addComment, getAnnotations, getComments, getRawComments, hasMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModifiers
protected final List<GeneratedEnumConstant> constants
protected final Map<String,GeneratedEnumConstant> byname
public void setSuperClass(MetaType sup)
setSuperClass
in class GeneratedClass
public GeneratedEnumConstant addConstant(String id, Format... params)
public GeneratedEnumConstant addConstant(String id, Formattable... params)
public List<GeneratedEnumConstant> getConstants()
see also the complete user documentation .