gov.llnl.babel.backend.jdk
Class ClientJava
java.lang.Object
gov.llnl.babel.backend.jdk.ClientJava
public class ClientJava
extends java.lang.Object
Class ClientJava
writes the Java native code descriptions that
will point to the JNI C code written by ClientJNI
. The class
constructor takes a language writer and method generateCode
writes the Java client code for the specified symbol to the output stream.
The language writer output stream is not closed by this object.
void | generateCode(Symbol symbol) - Write Java client information for the provided symbol to the language
writer output stream provided in the class constructor.
|
static void | generateCode(Symbol symbol, LanguageWriterForJava writer, Context context) - This is a convenience utility function that writes the Java client
information into the provided language writer output stream.
|
ClientJava
public ClientJava(LanguageWriterForJava writer,
Context context)
Create a ClientJava
object that will write symbol
information to the provided output language writer stream.
generateCode
public void generateCode(Symbol symbol)
throws CodeGenerationException
Write Java client information for the provided symbol to the language
writer output stream provided in the class constructor. This method
does not close the writer output stream. Code is currently generated
only for sidl enumerations, interfaces, and classes, since packages do
not require JNI support.
generateCode
public static void generateCode(Symbol symbol,
LanguageWriterForJava writer,
Context context)
throws CodeGenerationException
This is a convenience utility function that writes the Java client
information into the provided language writer output stream. The
output stream is not closed on exit. A code generation exception
is thrown if an error is detected, such as I/O trouble or a violation
of data type invariants.