Class Helper
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.toJavaPortable.Helper
-
-
Field Summary
Fields Modifier and Type Field Description protected SymtabEntryentryprotected java.lang.StringhelperClassprotected java.lang.StringhelperTypeprotected GenFileStreamstreamprotected java.util.HashtablesymbolTable
-
Constructor Summary
Constructors Constructor Description Helper()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 helper class.protected voidinit()Initialize variables unique to this generator.protected voidopenStream()Open the print stream for subsequent output.protected java.lang.StringstubName(InterfaceEntry entry)Return the stub name for the interface entry.protected voidwriteBody()Generate members of this class.protected voidwriteClosing()Generate the closing statements.protected voidwriteCtors()Generate the constructors.protected voidwriteExtract()Generate the extract method.protected voidwriteGetClass()Generate the get_class method.protected voidwriteGetID()Generate the GetID method.protected voidwriteGetInstance()Generate the get_instance method.protected voidwriteGetSafeBaseIds()Generate the GetSafeBaseIds method.protected voidwriteGetType()Generate the GetType method.protected voidwriteHeading()Generate the heading, including package, imports, class statements, and open curly.protected voidwriteHelperInterface()Generate members of the Helper interface.protected voidwriteID()Generate the ID method.protected voidwriteInsert()Generate the insert method.protected voidwriteInstVars()Generate the instance variables.protected voidwriteNarrow()Generate the narrow method.protected voidwriteRead()Generate the read method.protected voidwriteRemoteNarrow()Write the narrow() method for a remotable object.private voidwriteRemoteNarrowForAbstract(boolean hasAbstractParent)Write the narrow() method for abstract interface.private voidwriteRemoteNarrowForLocal(boolean hasAbstractParent)Write the narrow() method for local interface.private voidwriteRemoteUncheckedNarrowForAbstract(boolean hasAbstractParent)Write the unchecked narrow() method for abstract interface.private voidwriteRemoteUncheckedNarrowForLocal(boolean hasAbstractParent)Write the unchecked narrow() method for local interface.protected voidwriteType()Generate the typecode variable and type method.protected voidwriteUncheckedNarrow()Generate the unchecked narrow method.protected voidwriteUncheckedRemoteNarrow()Write the unchecked narrow() method for a remotable object.protected voidwriteValueHelperInterface()Generate members of the ValueHelper interface.protected voidwriteWrite()Generate the write method.
-
-
-
Field Detail
-
symbolTable
protected java.util.Hashtable symbolTable
-
entry
protected SymtabEntry entry
-
stream
protected GenFileStream stream
-
helperClass
protected java.lang.String helperClass
-
helperType
protected java.lang.String helperType
-
-
Method Detail
-
generate
public void generate(java.util.Hashtable symbolTable, SymtabEntry entry)Generate the helper 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, 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.
-
openStream
protected void openStream()
Open the print stream for subsequent output.
-
writeHeading
protected void writeHeading()
Generate the heading, including package, imports, class statements, and open curly.
-
writeBody
protected void writeBody()
Generate members of this class.
-
writeHelperInterface
protected void writeHelperInterface()
Generate members of the Helper interface.
-
writeValueHelperInterface
protected void writeValueHelperInterface()
Generate members of the ValueHelper interface.
-
writeClosing
protected void writeClosing()
Generate the closing statements.
-
closeStream
protected void closeStream()
Write the stream to file by closing the print stream.
-
writeInstVars
protected void writeInstVars()
Generate the instance variables.
-
writeCtors
protected void writeCtors()
Generate the constructors.
-
writeInsert
protected void writeInsert()
Generate the insert method.
-
writeExtract
protected void writeExtract()
Generate the extract method.
-
writeType
protected void writeType()
Generate the typecode variable and type method.
-
writeID
protected void writeID()
Generate the ID method.
-
writeRead
protected void writeRead()
Generate the read method.
-
writeWrite
protected void writeWrite()
Generate the write method.
-
writeNarrow
protected void writeNarrow()
Generate the narrow method.
-
writeRemoteNarrow
protected void writeRemoteNarrow()
Write the narrow() method for a remotable object.
-
writeRemoteNarrowForLocal
private void writeRemoteNarrowForLocal(boolean hasAbstractParent)
Write the narrow() method for local interface.
-
writeRemoteNarrowForAbstract
private void writeRemoteNarrowForAbstract(boolean hasAbstractParent)
Write the narrow() method for abstract interface.
-
writeUncheckedNarrow
protected void writeUncheckedNarrow()
Generate the unchecked narrow method.
-
writeUncheckedRemoteNarrow
protected void writeUncheckedRemoteNarrow()
Write the unchecked narrow() method for a remotable object.
-
writeRemoteUncheckedNarrowForLocal
private void writeRemoteUncheckedNarrowForLocal(boolean hasAbstractParent)
Write the unchecked narrow() method for local interface.
-
writeRemoteUncheckedNarrowForAbstract
private void writeRemoteUncheckedNarrowForAbstract(boolean hasAbstractParent)
Write the unchecked narrow() method for abstract interface.
-
writeGetID
protected void writeGetID()
Generate the GetID method.
-
writeGetType
protected void writeGetType()
Generate the GetType method.
-
writeGetClass
protected void writeGetClass()
Generate the get_class method.
-
writeGetInstance
protected void writeGetInstance()
Generate the get_instance method.
-
writeGetSafeBaseIds
protected void writeGetSafeBaseIds()
Generate the GetSafeBaseIds method.
-
stubName
protected java.lang.String stubName(InterfaceEntry entry)
Return the stub name for the interface entry.
-
-