public class ServerJNI
extends java.lang.Object
ServerJNI
writes the JNI C code that links the Java
server to the IOR. The constructor takes a C language writer stream and
method generateCode
writes the C JNI code for the specified
symbol to the output stream. The language writer output stream is not closed
by this object.Constructor and Description |
---|
ServerJNI(Extendable ext,
Context context)
Create a
ServerJNI object that will write symbol
information to a created language writer stream. |
ServerJNI(Extendable ext,
LanguageWriterForC writer,
Context context)
Create a
ServerJNI object that will write symbol
information to the provided output language writer stream. |
Modifier and Type | Method and Description |
---|---|
void |
generateCode()
Write Java JNI information for the provided symbol to the language writer
output stream provided in the class constructor.
|
static void |
generateCode(Extendable symbol,
Context context)
This is a convenience utility function that writes the JNI server
information into the provided language writer output stream.
|
static void |
generateCode(Extendable symbol,
LanguageWriterForC writer,
Context context)
This is a convenience utility function that writes the JNI server
information into the provided language writer output stream.
|
public ServerJNI(Extendable ext, LanguageWriterForC writer, Context context) throws CodeGenerationException
ServerJNI
object that will write symbol
information to the provided output language writer stream.ext
- an interface or class symbol that needs source file for a Java
extension class.writer
- the output writer streamCodeGenerationException
public ServerJNI(Extendable ext, Context context) throws CodeGenerationException
ServerJNI
object that will write symbol
information to a created language writer stream.ext
- an interface or class symbol that needs source file for a Java
extension class.CodeGenerationException
public static void generateCode(Extendable symbol, LanguageWriterForC writer, Context context) throws CodeGenerationException
symbol
- an interface or class symbol that needs source file for a Java
extension class.writer
- the output writer stream* of data type invariants.CodeGenerationException
public static void generateCode(Extendable symbol, Context context) throws CodeGenerationException
symbol
- an interface or class symbol that needs source file for a Java
extension class.CodeGenerationException
public void generateCode() throws CodeGenerationException
CodeGenerationException