public final class FortranParser extends AbstractParser implements Parser
| Modifier and Type | Field and Description |
|---|---|
private java.util.Vector |
includes
List of included filenames.
|
private AbstractParserState |
newLineState
State that starts consuming content at the beginning of a line.
|
| Constructor and Description |
|---|
FortranParser()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilename(java.lang.String include)
Called by FilenameState at completion of file name production.
|
java.lang.String[] |
getIncludes()
Gets collection of include file names encountered in parse.
|
AbstractParserState |
getNewLineState()
Get the state for the beginning of a new line.
|
void |
parse(java.io.Reader reader)
Collects all included files from the content of the reader.
|
private final java.util.Vector includes
private final AbstractParserState newLineState
public void addFilename(java.lang.String include)
addFilename in class AbstractParserinclude - include file namepublic java.lang.String[] getIncludes()
getIncludes in interface Parserpublic AbstractParserState getNewLineState()
getNewLineState in class AbstractParserpublic void parse(java.io.Reader reader)
throws java.io.IOException
parse in interface Parserparse in class AbstractParserreader - character reader containing a FORTRAN source modulejava.io.IOException - throw if I/O error during parse