Class DefaultFactory
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.toJavaPortable.DefaultFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected SymtabEntryentryprotected java.lang.StringfactoryClassprotected java.lang.StringfactoryInterfaceprotected java.lang.StringfactoryTypeprotected java.lang.StringimplTypeprotected GenFileStreamstreamprotected java.util.HashtablesymbolTable
-
Constructor Summary
Constructors Constructor Description DefaultFactory()Public zero-argument constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseStream()Write the stream to file by closing the print stream.voidgenerate(java.util.Hashtable symbolTable, SymtabEntry entry)Generate the default value factory class.protected booleanhasFactoryMethods()protected voidinit()Initialize variables unique to this generator.protected voidopenStream()Open the print stream for subsequent output.protected voidwriteBody()Generate the contents of this classprotected voidwriteClosing()Generate the closing statements.protected voidwriteFactoryMethods()Generate members of this class.protected voidwriteHeading()Generate the heading, including the package, imports, source comment, class statement, and left curly.protected voidwriteReadValue()Generate default read_value
-
-
-
Field Detail
-
symbolTable
protected java.util.Hashtable symbolTable
-
entry
protected SymtabEntry entry
-
stream
protected GenFileStream stream
-
factoryClass
protected java.lang.String factoryClass
-
factoryInterface
protected java.lang.String factoryInterface
-
factoryType
protected java.lang.String factoryType
-
implType
protected java.lang.String implType
-
-
Method Detail
-
generate
public void generate(java.util.Hashtable symbolTable, SymtabEntry entry)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 the contents of this class
-
writeFactoryMethods
protected void writeFactoryMethods()
Generate members of this class.
-
writeReadValue
protected void writeReadValue()
Generate default read_value
-
writeClosing
protected void writeClosing()
Generate the closing statements.
-
closeStream
protected void closeStream()
Write the stream to file by closing the print stream.
-
-