gov.llnl.babel.backend.matlab
Class ClientMexStub

java.lang.Object
  extended by gov.llnl.babel.backend.matlab.ClientMexStub

public class ClientMexStub
extends java.lang.Object

Class ClientMexStub writes the Matlab 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 Matlab client code for the specified symbol to the output stream. The language writer output stream is not closed by this object.


Constructor Summary
ClientMexStub(Extendable ext, Context context)
          Create a ClientMexStub object that will write symbol information to the provided output language writer stream.
 
Method Summary
static void generateCode(Extendable ext, Context context)
          Generate Matlab Mex function stub for CLASS symbol.
 void generateExtendableStub()
          Generate the Mat client mexFunction source for a sidl class or interface type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientMexStub

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

Method Detail

generateCode

public static void generateCode(Extendable ext,
                                Context context)
                         throws CodeGenerationException
Generate Matlab Mex function stub for CLASS symbol.

Throws:
CodeGenerationException

generateExtendableStub

public void generateExtendableStub()
                            throws CodeGenerationException
Generate the Mat client mexFunction source for a sidl class or interface type. For the most part, the Java source defines the interfaces and classes and the native methods. All of the real work is done by the JNI code.

Throws:
CodeGenerationException