public class EnumBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected com.sun.codemodel.JCodeModel |
codeModel |
protected com.sun.codemodel.JDefinedClass |
definedClass |
protected com.sun.codemodel.JFieldVar |
nameField |
protected CodeBuilderSettings |
settings |
protected org.jsmiparser.smi.SmiType |
type |
protected java.lang.String |
typeName |
protected com.sun.codemodel.JFieldVar |
valueField |
| Constructor and Description |
|---|
EnumBuilder(CodeBuilderSettings settings,
org.jsmiparser.smi.SmiType type,
com.sun.codemodel.JCodeModel codeModel) |
EnumBuilder(CodeBuilderSettings settings,
org.jsmiparser.smi.SmiType type,
java.lang.String typeName,
com.sun.codemodel.JCodeModel codeModel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConstructor() |
protected void |
addEnumConstants() |
protected void |
addFields() |
protected void |
addInterfaces() |
protected void |
addJavadocs() |
protected void |
addNameGetter() |
protected void |
addToString() |
protected void |
addValueGetter() |
com.sun.codemodel.JDefinedClass |
build() |
protected com.sun.codemodel.JPackage |
determinePackage() |
protected final CodeBuilderSettings settings
protected final org.jsmiparser.smi.SmiType type
protected final java.lang.String typeName
protected final com.sun.codemodel.JCodeModel codeModel
protected com.sun.codemodel.JDefinedClass definedClass
protected com.sun.codemodel.JFieldVar nameField
protected com.sun.codemodel.JFieldVar valueField
public EnumBuilder(CodeBuilderSettings settings, org.jsmiparser.smi.SmiType type, com.sun.codemodel.JCodeModel codeModel)
public EnumBuilder(CodeBuilderSettings settings, org.jsmiparser.smi.SmiType type, java.lang.String typeName, com.sun.codemodel.JCodeModel codeModel)
public com.sun.codemodel.JDefinedClass build()
protected com.sun.codemodel.JPackage determinePackage()
protected void addJavadocs()
protected void addInterfaces()
protected void addEnumConstants()
protected void addFields()
protected void addConstructor()
protected void addNameGetter()
protected void addValueGetter()
protected void addToString()