gov.llnl.babel.backend.jdk
Class ClientJava

java.lang.Object
  extended by 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.


Constructor Summary
ClientJava(LanguageWriterForJava writer, Context context)
          Create a ClientJava object that will write symbol information to the provided output language writer stream.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientJava

public ClientJava(LanguageWriterForJava writer,
                  Context context)
Create a ClientJava object that will write symbol information to the provided output language writer stream.

Method Detail

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.

Throws:
CodeGenerationException

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.

Throws:
CodeGenerationException