gov.llnl.babel.backend.matlab

Class 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.

Constructor Details

ClientMexStub

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

Method Details

generateCode

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

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.