Class EnumGen
java.lang.Object
com.sun.tools.corba.ee.idl.toJavaPortable.EnumGen
- All Implemented Interfaces:
EnumGen, Generator, JavaGenerator
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Stringprotected EnumEntry(package private) Stringprotected PrintWriterprotected Hashtable//////////// -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClose the print stream, which writes the stream to file.voidgenerate(Hashtable symbolTable, EnumEntry e, PrintWriter s) Generate the Java code for an IDL enumeration.protected voidGenerate the helper class for this enumeration.protected voidGenerate the holder class for this enumeration.voidhelperRead(String entryName, SymtabEntry entry, PrintWriter stream) inthelperType(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) ////////////voidhelperWrite(SymtabEntry entry, PrintWriter stream) protected voidinit()Initialize members unique to this generator.protected voidOpen the print stream to which to write the enumeration class.intread(int index, String indent, String name, SymtabEntry entry, PrintWriter stream) inttype(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) intwrite(int index, String indent, String name, SymtabEntry entry, PrintWriter stream) protected voidWrite the members of enumeration class.protected voidClose the enumeration class.protected voidWrite the protected constructor for the enumeration class.protected voidWrite the from_int method for the enumeration class.protected voidWrite the heading of the enumeration class, including the package, imports, class statement, and open curly.protected voidWrite the value method for the enumeration class.
-
Field Details
-
Constructor Details
-
EnumGen
public EnumGen()Public zero-argument constructor.
-
-
Method Details
-
generate
Generate the Java code for an IDL enumeration. -
init
protected void init()Initialize members unique to this generator. -
openStream
protected void openStream()Open the print stream to which to write the enumeration class. -
generateHolder
protected void generateHolder()Generate the holder class for this enumeration. -
generateHelper
protected void generateHelper()Generate the helper class for this enumeration. -
writeHeading
protected void writeHeading()Write the heading of the enumeration class, including the package, imports, class statement, and open curly. -
writeBody
protected void writeBody()Write the members of enumeration class. -
writeValue
protected void writeValue()Write the value method for the enumeration class. -
writeFromInt
protected void writeFromInt()Write the from_int method for the enumeration class. -
writeCtors
protected void writeCtors()Write the protected constructor for the enumeration class. -
writeClosing
protected void writeClosing()Close the enumeration class. -
closeStream
protected void closeStream()Close the print stream, which writes the stream to file. -
helperType
public int helperType(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) ////////////- Specified by:
helperTypein interfaceJavaGenerator
-
type
public int type(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) - Specified by:
typein interfaceJavaGenerator
-
helperRead
- Specified by:
helperReadin interfaceJavaGenerator
-
helperWrite
- Specified by:
helperWritein interfaceJavaGenerator
-
read
- Specified by:
readin interfaceJavaGenerator
-
write
- Specified by:
writein interfaceJavaGenerator
-