gov.llnl.babel.backend.fortran
Class StubDoc
java.lang.Object
gov.llnl.babel.backend.fortran.StubDoc
public class StubDoc
extends java.lang.Object
This class provides the ability to write a FORTRAN file with a
subroutine template for each method the end user has to implement to
implement a sidl class. The class will retain the previous user provided
implmentation when overwriting a implementation file.
StubDoc
public StubDoc(LanguageWriterForFortran writer,
Context context)
Generate an instance to generate documentation for a FORTRAN
client.
writer
- the output device to which the FORTRAN documentation
should be written.
generateCode
public void generateCode(Extendable ext)
throws CodeGenerationException
Generate the implementation FORTRAN file for a sidl class. The
implementation file contains all the subroutines that need to be
implemented for the class, and when replacing an implementation file,
the previous implementation is retained.
ext
- the sidl class whose implementation is to be written.
generateCode
public static void generateCode(Symbol sym,
LanguageWriterForFortran writer,
Context context)
throws CodeGenerationException
Generate the implementation FORTRAN file for a sidl class. The
implementation file contains all the subroutines that need to be
implemented for the class, and when replacing an implementation file,
the previous implementation is retained.