gov.llnl.babel.backend.rmi
Class RMIStubHeader
java.lang.Object
gov.llnl.babel.backend.rmi.RMIStubHeader
public class RMIStubHeader
- extends java.lang.Object
Class RMIStubHeader
is called for the C portion of a Stub
Header. It generated declerations necessary for RMI.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMIStubHeader
public RMIStubHeader()
generateCode
public static void generateCode(Symbol symbol,
LanguageWriterForC lw)
throws CodeGenerationException
- Write C client header information for the provided symbol to the
language writer output stream provided in the constructor. This
method does not close the writer output stream and may be called
for more than one symbol (although the written header may not be
valid input for the C compiler). A code generation exception is
written if an error is detected.
- Parameters:
symbol
- the Symbol
whose header will be
written.
- Throws:
CodeGenerationException
- this is a catch all exception. It can be caused by I/O trouble
or violations of the data type invariants.
generateExtendable
public static void generateExtendable(Extendable ext,
LanguageWriterForC lw)
throws CodeGenerationException
- Generate a C client header for a SIDL class or interface description.
The header file consists of the typedef the defines the symbol type.
Note that the typedef comes before any external includes to solve
the problem with forward references. After the typedef comes the
external includes, followed by special methods such as cast and new,
followed by the regular methods. The header concludes with close
statements for the header guards.
- Parameters:
ext
- the Extendable
whose header is being written.
- Throws:
CodeGenerationException
- this is a catch all exception. It can be caused by I/O trouble
or violations of the data type invariants.
generateConnectInternal
public static void generateConnectInternal(Extendable ext,
LanguageWriterForC lw)
throws CodeGenerationException
- Throws:
CodeGenerationException
generatePragmas
public static void generatePragmas(Extendable ext,
LanguageWriterForC lw)
throws CodeGenerationException
- Throws:
CodeGenerationException