|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.backend.fortran.ImplSource
public class ImplSource
This class provides the ability to write a FORTRAN file with a subroutine template for each method the end user has to implement for a sidl class. The class will retain the previous user provided implementation when overwriting a implementation file.
Constructor Summary | |
---|---|
ImplSource(LanguageWriterForFortran writer,
CodeSplicer splicer)
Generate an instance to generate a FORTRAN implementation template. |
Method Summary | |
---|---|
void |
generateCode(Class cls)
Generate the implementation FORTRAN file for a sidl class. |
static void |
generateCode(Class cls,
LanguageWriterForFortran writer,
CodeSplicer splicer)
Generate the implementation FORTRAN file for a sidl class. |
java.lang.String |
getArgumentDeclaration(Argument a)
Return the argument declaratoin, tailored to the specific flavor of FORTRAN. |
void |
useStatementsForSupers(Method m,
SymbolID id)
|
static void |
useStatementsForSupers(Method m,
SymbolID id,
LanguageWriterForFortran writer,
CodeSplicer splicer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImplSource(LanguageWriterForFortran writer, CodeSplicer splicer) throws java.security.NoSuchAlgorithmException
writer
- the output device to which the FORTRAN implementation
should be written.splicer
- this stores the previous implementation when one
exists.
java.security.NoSuchAlgorithmException
- thrown when the JVM has not SHA hash algorithm.Method Detail |
---|
public static void useStatementsForSupers(Method m, SymbolID id, LanguageWriterForFortran writer, CodeSplicer splicer) throws CodeGenerationException
CodeGenerationException
public void useStatementsForSupers(Method m, SymbolID id) throws CodeGenerationException
CodeGenerationException
public java.lang.String getArgumentDeclaration(Argument a) throws CodeGenerationException
a
- the argument
CodeGenerationException
public void generateCode(Class cls) throws CodeGenerationException
cls
- the sidl class whose implementation is to be written.
CodeGenerationException
- a catch all exception to indicate problems in the code generation
phase.public static void generateCode(Class cls, LanguageWriterForFortran writer, CodeSplicer splicer) throws CodeGenerationException, java.security.NoSuchAlgorithmException
CodeGenerationException
- a catch all exception to indicate problems in the code generation
phase.
java.security.NoSuchAlgorithmException
- A problem with the name mangler.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |