gov.llnl.babel.backend.jdk
Class StubHeader

java.lang.Object
  extended by gov.llnl.babel.backend.jdk.StubHeader

public class StubHeader
extends java.lang.Object

This class generates the C header code that externs rmicast and connect to the other stubs.


Constructor Summary
StubHeader(LanguageWriterForC writer, Context context)
          Create an object to generate the stub code for a sidl class/interface.
 
Method Summary
 void generateCode(Symbol symbol)
          Generate a C (.h) file to provide other stubs with certain functions that must be available globally.
static void generateCode(Symbol ext, LanguageWriterForC writer, Context context)
          Generate a C (.h) file to provide other stubs with certain functions that must be available globally.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubHeader

public StubHeader(LanguageWriterForC writer,
                  Context context)
Create an object to generate the stub code for a sidl class/interface. This is frequently called from generateCode rather than used directly.

Parameters:
writer - the stub code is generated to this output device.
Method Detail

generateCode

public void generateCode(Symbol symbol)
                  throws CodeGenerationException
Generate a C (.h) file to provide other stubs with certain functions that must be available globally.

Parameters:
symbol - the symbol for which stubs will be generated.
Throws:
CodeGenerationException - a catch all exception to indicate problems during the code generation phase of the sidl processing.

generateCode

public static void generateCode(Symbol ext,
                                LanguageWriterForC writer,
                                Context context)
                         throws CodeGenerationException
Generate a C (.h) file to provide other stubs with certain functions that must be available globally.

Parameters:
ext - the symbol for which stubs will be generated.
writer - the output device where the stub should be written.
Throws:
CodeGenerationException - a catch all exception to indicate problems during the code generation phase of the sidl processing.