public class JavaEnumTypeWriter extends JavaClassWriter
className, namespaces, packageNameemitter, 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, writePackageclosePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, verboseMessage, writeComment, writeCommentprotected String getImplementsText()
getImplementsText in class JavaClassWriterprotected void writeFileBody(PrintWriter pw) throws IOException
writeFileBody in class JavaWriterpw - IOExceptionpublic static Vector getEnumValueIds(Vector bv)
bv - Vector base and values vector from getEnumerationBaseAndValuespublic void generate()
throws IOException
generate in interface Generatorgenerate in class JavaWriterIOExceptionCopyright © The Apache Software Foundation. All Rights Reserved.