net.sf.antcontrib.cpptasks.parser
Class FortranParser
- Parser
public final class FortranParser
A parser that extracts INCLUDE statements from a Reader.
void | addFilename(String include) - Called by FilenameState at completion of file name production.
|
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(Reader reader) - Collects all included files from the content of the reader.
|
FortranParser
public FortranParser()
Default constructor.
addFilename
public void addFilename(String include)
Called by FilenameState at completion of file name production.
- addFilename in interface AbstractParser
include
- include file name
getIncludes
public String[] getIncludes()
Gets collection of include file names encountered in parse.
- getIncludes in interface Parser
parse
public void parse(Reader reader)
throws IOException
Collects all included files from the content of the reader.
- parse in interface Parser
- parse in interface AbstractParser
reader
- character reader containing a FORTRAN source module
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.