| java.lang.Object com.sun.tools.corba.se.idl.toJavaPortable.EnumGen
Constructor Summary | |
public | EnumGen() Public zero-argument constructor. |
Method Summary | |
protected void | closeStream() Close the print stream, which writes the stream to file. | public void | generate(Hashtable symbolTable, EnumEntry e, PrintWriter s) Generate the Java code for an IDL enumeration. | protected void | generateHelper() Generate the helper class for this enumeration. | protected void | generateHolder() Generate the holder class for this enumeration. | public void | helperRead(String entryName, SymtabEntry entry, PrintWriter stream) | public int | helperType(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) | public void | helperWrite(SymtabEntry entry, PrintWriter stream) | protected void | init() Initialize members unique to this generator. | protected void | openStream() Open the print stream to which to write the enumeration class. | public int | read(int index, String indent, String name, SymtabEntry entry, PrintWriter stream) | public int | type(int index, String indent, TCOffsets tcoffsets, String name, SymtabEntry entry, PrintWriter stream) | public int | write(int index, String indent, String name, SymtabEntry entry, PrintWriter stream) | protected void | writeBody() Write the members of enumeration class. | protected void | writeClosing() Close the enumeration class. | protected void | writeCtors() Write the protected constructor for the enumeration class. | protected void | writeFromInt() Write the from_int method for the enumeration class. | protected void | writeHeading() Write the heading of the enumeration class, including the package,
imports, class statement, and open curly. | protected void | writeValue() Write the value method for the enumeration class. |
EnumGen | public EnumGen()(Code) | | Public zero-argument constructor.
|
closeStream | protected void closeStream()(Code) | | Close the print stream, which writes the stream to file.
|
generateHelper | protected void generateHelper()(Code) | | Generate the helper class for this enumeration.
|
generateHolder | protected void generateHolder()(Code) | | Generate the holder class for this enumeration.
|
init | protected void init()(Code) | | Initialize members unique to this generator.
|
openStream | protected void openStream()(Code) | | Open the print stream to which to write the enumeration class.
|
writeBody | protected void writeBody()(Code) | | Write the members of enumeration class.
|
writeClosing | protected void writeClosing()(Code) | | Close the enumeration class.
|
writeCtors | protected void writeCtors()(Code) | | Write the protected constructor for the enumeration class.
|
writeFromInt | protected void writeFromInt()(Code) | | Write the from_int method for the enumeration class.
|
writeHeading | protected void writeHeading()(Code) | | Write the heading of the enumeration class, including the package,
imports, class statement, and open curly.
|
writeValue | protected void writeValue()(Code) | | Write the value method for the enumeration class.
|
|
|