public class SkelSource
extends java.lang.Object
| Constructor and Description |
|---|
SkelSource(LanguageWriterForC writer,
Context context)
Create an object to generate the skeleton code in C for a FORTRAN
object.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
borrowRarray(java.lang.String lhs,
Type argType,
java.lang.String rhs,
java.lang.String indexExprBase,
java.lang.String prefix,
boolean withDecl,
Context d_context,
LanguageWriter d_writer) |
void |
doOutArg(Argument arg,
java.lang.String lhs)
For
out and inout parameters, convert the
values from the proxy variables into something that the
IOR can handle. |
static java.util.Collection |
extendMethods(Extendable ext,
Context d_context)
Add the implicit builtin methods to the list of methods.
|
void |
generateCode(Class cls)
This method creates a skeleton file for a class.
|
static void |
generateCode(Class cls,
LanguageWriterForC writer,
Context context)
This is a convenience routine to create a skeleton file for a class
without having to make an instance of
SkelSource. |
java.lang.String |
getReturnString(Type type)
Generate a return string for the specified SIDL type.
|
public SkelSource(LanguageWriterForC writer, Context context) throws java.security.NoSuchAlgorithmException
writer - the skeleton code is written to this device.java.security.NoSuchAlgorithmException - problem with the name mangler.public static void borrowRarray(java.lang.String lhs,
Type argType,
java.lang.String rhs,
java.lang.String indexExprBase,
java.lang.String prefix,
boolean withDecl,
Context d_context,
LanguageWriter d_writer)
throws CodeGenerationException
CodeGenerationExceptionpublic void doOutArg(Argument arg, java.lang.String lhs) throws CodeGenerationException
out and inout parameters, convert the
values from the proxy variables into something that the
IOR can handle.argType - the type of the argument.argName - the original name of the formal argument.mode - the mode of the argument.lhs - a left-hand-side expression used to assign the result valueCodeGenerationException - a catch all exception to indicate problems in the code generation
phase.public java.lang.String getReturnString(Type type) throws CodeGenerationException
CodeGenerationExceptionpublic static java.util.Collection extendMethods(Extendable ext, Context d_context) throws CodeGenerationException
ext - the extendable object.CodeGenerationExceptionpublic void generateCode(Class cls) throws CodeGenerationException
cls - the class to create.CodeGenerationException - a catch all exception to indicate problems in the code generation
phase.public static void generateCode(Class cls, LanguageWriterForC writer, Context context) throws CodeGenerationException, java.security.NoSuchAlgorithmException
SkelSource. The
skeleton file is a C module that is the glue between the IOR and
the implementation of a class written in FORTRAN.cls - the class for whom a skeleton will be made.writer - the output device where the skeleton file will be
sent.CodeGenerationException - a catch all exception to indicate problems in the code generation
phase.java.security.NoSuchAlgorithmException - problem with the name mangler.