public class JavaEnumTypeWriter extends JavaClassWriter
className, namespaces, packageName
emitter, LINE_LENGTH
Modifier | Constructor and Description |
---|---|
protected |
JavaEnumTypeWriter(Emitter emitter,
TypeEntry type,
Vector elements)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
generate()
Generate a java source file for enum class.
|
static Vector |
getEnumValueIds(Vector bv)
Get the enumeration names for the values.
|
protected String |
getImplementsText()
Return "implements java.io.Serializable ".
|
protected void |
writeFileBody(PrintWriter pw)
Generate the binding for the given enumeration type.
|
getClassModifiers, getClassName, getClassText, getExtendsText, getFileName, getPackage, registerFile, writeFileFooter, writeFileHeader, writeHeaderComments, writePackage
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeComment
protected String getImplementsText()
getImplementsText
in class JavaClassWriter
protected void writeFileBody(PrintWriter pw) throws IOException
writeFileBody
in class JavaWriter
pw
- IOException
public static Vector getEnumValueIds(Vector bv)
bv
- Vector base and values vector from getEnumerationBaseAndValuespublic void generate() throws IOException
generate
in interface Generator
generate
in class JavaWriter
IOException
Copyright © The Apache Software Foundation. All Rights Reserved.