|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.backend.writers.PrettyWriter
gov.llnl.babel.backend.writers.LanguageWriter
gov.llnl.babel.backend.writers.LanguageWriterForFortran
public class LanguageWriterForFortran
Class LanguageWriterForFortran
extends the generic language
writer to provide additional capabilities for writing Fortran code,
such as Fortran comment blocks.
Field Summary |
---|
Constructor Summary | |
---|---|
LanguageWriterForFortran(java.io.PrintWriter writer)
Create a LanguageWriterForFortran instance that will send
output to the specified print writer object. |
Method Summary | |
---|---|
void |
beginBlockComment(boolean is_doc)
Begin a block comment. |
void |
endBlockComment(boolean is_doc)
End a block comment. |
void |
generateInclude(java.lang.String file)
Generate a user include statement for the specified include file. |
void |
generateSystemInclude(java.lang.String file)
Generate a system include statement for the specified include file. |
void |
generateUse(java.lang.String module)
Generate a use statement for the specified string. |
void |
writeCommentLine(java.lang.String comment)
Output a single-line comment to the pretty writer stream. |
Methods inherited from class gov.llnl.babel.backend.writers.LanguageWriter |
---|
safeCommentString, writeBanner, writeComment, writeComment, writeComment, writeComment, writeComment, writeComment, writeComment |
Methods inherited from class gov.llnl.babel.backend.writers.PrettyWriter |
---|
backTab, changeTabLevel, close, defineBlockComment, disableBlockComment, disableLineBreak, enableBlockComment, enableLineBreak, enableLineBreak, getPrintWriter, print, printAligned, println, println, printlnUnformatted, printSpaces, printUnformatted, restoreFirstTabStop, setFirstTabStop, setLineBreakString, setStrictBreaking, setTabSpacing, setTemporaryFirstTabStop, tab |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LanguageWriterForFortran(java.io.PrintWriter writer)
LanguageWriterForFortran
instance that will send
output to the specified print writer object. Set up the output
properties of the language writer for Fortran. For F77, it sets the
first tab at eight, the tab spacing to three, and a line break at
column 72.
Method Detail |
---|
public void beginBlockComment(boolean is_doc)
beginBlockComment
in class LanguageWriter
public void endBlockComment(boolean is_doc)
endBlockComment
in class LanguageWriter
public void writeCommentLine(java.lang.String comment)
writeCommentLine
in class LanguageWriter
comment
- a single line comment to include in the outputLanguageWriter.safeCommentString(java.lang.String)
public void generateInclude(java.lang.String file)
public void generateSystemInclude(java.lang.String file)
public void generateUse(java.lang.String module)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |