java.lang.Object
com.sun.tools.corba.ee.idl.toJavaPortable.Helper
All Implemented Interfaces:
AuxGen
Direct Known Subclasses:
Helper24

public class Helper extends Object implements AuxGen
  • Field Details

  • Constructor Details

    • Helper

      public Helper()
      Public zero-argument constructor.
  • Method Details

    • generate

      public void generate(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
      Specified by:
      generate in interface AuxGen
    • 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 String stubName(InterfaceEntry entry)
      Return the stub name for the interface entry.