public class ModuleSource
extends java.lang.Object
Constructor and Description |
---|
ModuleSource(LanguageWriterForFortran writer,
Context context)
Generate an instance to write the module for a FORTRAN 90
client.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set |
extendedReferences(Extendable ext,
Context context) |
void |
generateCode(Enumeration enm)
Generate the FORTRAN 90 module file for a sidl enumerated type.
|
void |
generateCode(Extendable ext)
Generate the FORTRAN 90 module file for a sidl class.
|
static void |
generateCode(Symbol sym,
LanguageWriterForFortran writer,
Context context)
Generate the FORTRAN 90 module file for a sidl class.
|
void |
generateSupers(Class cls,
CodeSplicer splicer,
NameMangler mang) |
static void |
generateSupers(Class cls,
LanguageWriterForFortran writer,
CodeSplicer splicer,
Context context,
NameMangler mang)
This is a convenience utility function specifically for the generation
of super "Stub" functions in the Impl files.
|
public ModuleSource(LanguageWriterForFortran writer, Context context)
writer
- the output device to which the FORTRAN 90 module
should be written.public static void generateSupers(Class cls, LanguageWriterForFortran writer, CodeSplicer splicer, Context context, NameMangler mang) throws CodeGenerationException
writer
- the output writer to which the stub source will
be written. This will not be closed.cls
- The class in which these supers are to be generatedCodeGenerationException
- this is a catch all exception. It can be caused by I/O trouble or
violations of the data type invariants.public void generateSupers(Class cls, CodeSplicer splicer, NameMangler mang) throws CodeGenerationException
CodeGenerationException
public static java.util.Set extendedReferences(Extendable ext, Context context) throws CodeGenerationException
CodeGenerationException
public void generateCode(Extendable ext) throws CodeGenerationException
ext
- the sidl class whose module is to be written.CodeGenerationException
- a catch all exception to indicate problems in the code generation
phase.public void generateCode(Enumeration enm) throws CodeGenerationException
enm
- the sidl enumeration whose module is to be written.CodeGenerationException
- a catch all exception to indicate problems in the code generation
phase.public static void generateCode(Symbol sym, LanguageWriterForFortran writer, Context context) throws CodeGenerationException
CodeGenerationException
- a catch all exception to indicate problems in the code generation
phase.