Class Helper
java.lang.Object
com.sun.tools.corba.ee.idl.toJavaPortable.Helper
- All Implemented Interfaces:
AuxGen
- Direct Known Subclasses:
Helper24
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SymtabEntryprotected Stringprotected Stringprotected GenFileStreamprotected Hashtable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWrite the stream to file by closing the print stream.voidgenerate(Hashtable symbolTable, SymtabEntry entry) Generate the helper class.protected voidinit()Initialize variables unique to this generator.protected voidOpen the print stream for subsequent output.protected StringstubName(InterfaceEntry entry) Return the stub name for the interface entry.protected voidGenerate members of this class.protected voidGenerate the closing statements.protected voidGenerate the constructors.protected voidGenerate the extract method.protected voidGenerate the get_class method.protected voidGenerate the GetID method.protected voidGenerate the get_instance method.protected voidGenerate the GetSafeBaseIds method.protected voidGenerate the GetType method.protected voidGenerate the heading, including package, imports, class statements, and open curly.protected voidGenerate members of the Helper interface.protected voidwriteID()Generate the ID method.protected voidGenerate the insert method.protected voidGenerate the instance variables.protected voidGenerate the narrow method.protected voidGenerate the read method.protected voidWrite 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 voidGenerate the typecode variable and type method.protected voidGenerate the unchecked narrow method.protected voidWrite the unchecked narrow() method for a remotable object.protected voidGenerate members of the ValueHelper interface.protected voidGenerate the write method.
-
Field Details
-
symbolTable
-
entry
-
stream
-
helperClass
-
helperType
-
-
Constructor Details
-
Helper
public Helper()Public zero-argument constructor.
-
-
Method Details
-
generate
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
Return the stub name for the interface entry.
-