Class ValueFactory
java.lang.Object
com.sun.tools.corba.ee.idl.toJavaPortable.ValueFactory
- All Implemented Interfaces:
AuxGen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SymtabEntry
protected String
protected String
protected GenFileStream
protected Hashtable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Write the stream to file by closing the print stream.void
generate
(Hashtable symbolTable, SymtabEntry entry) Generate the default value factory class.protected boolean
protected void
init()
Initialize variables unique to this generator.protected void
Open the print stream for subsequent output.protected void
Generate members of this class.protected void
Generate the closing statements.protected void
Generate the heading, including the package, imports, source comment, class statement, and left curly.
-
Field Details
-
symbolTable
-
entry
-
stream
-
factoryClass
-
factoryType
-
-
Constructor Details
-
ValueFactory
public ValueFactory()Public zero-argument constructor.
-
-
Method Details
-
generate
Generate the default value factory class. Provides general algorithm for auxiliary binding generation: 1.) Initialize symbol table and symbol table entry members, common to all generators. 2.) Initialize members unique to this generator. 3.) Open print stream 4.) Write class heading (package, prologue, source comment, class statement, open curly 5.) Write class body (member data and methods) 6.) Write class closing (close curly) 7.) Close the print stream -
init
protected void init()Initialize variables unique to this generator. -
hasFactoryMethods
protected boolean hasFactoryMethods()- Returns:
- true if entry has any factory methods declared
-
openStream
protected void openStream()Open the print stream for subsequent output. -
writeHeading
protected void writeHeading()Generate the heading, including the package, imports, source comment, class statement, and left curly. -
writeBody
protected void writeBody()Generate members of this class. -
writeClosing
protected void writeClosing()Generate the closing statements. -
closeStream
protected void closeStream()Write the stream to file by closing the print stream.
-