|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.antcontrib.cpptasks.parser.AbstractParser net.sf.antcontrib.cpptasks.parser.FortranParser
public final class FortranParser
A parser that extracts INCLUDE statements from a Reader.
Constructor Summary | |
---|---|
FortranParser()
Default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FortranParser()
Method Detail |
---|
public void addFilename(java.lang.String include)
addFilename
in class AbstractParser
include
- include file namepublic java.lang.String[] getIncludes()
getIncludes
in interface Parser
public AbstractParserState getNewLineState()
getNewLineState
in class AbstractParser
public void parse(java.io.Reader reader) throws java.io.IOException
parse
in interface Parser
parse
in class AbstractParser
reader
- character reader containing a FORTRAN source module
java.io.IOException
- throw if I/O error during parse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |