net.sf.antcontrib.cpptasks.parser

Class FortranParser

public final class FortranParser extends AbstractParser implements Parser

A parser that extracts INCLUDE statements from a Reader.

Author: Curt Arnold

Constructor Summary
FortranParser()
Default constructor.
Method Summary
voidaddFilename(String include)
Called by FilenameState at completion of file name production.
String[]getIncludes()
Gets collection of include file names encountered in parse.
AbstractParserStategetNewLineState()
Get the state for the beginning of a new line.
voidparse(Reader reader)
Collects all included files from the content of the reader.

Constructor Detail

FortranParser

public FortranParser()
Default constructor.

Method Detail

addFilename

public void addFilename(String include)
Called by FilenameState at completion of file name production.

Parameters: include include file name

getIncludes

public String[] getIncludes()
Gets collection of include file names encountered in parse.

Returns: include file names

getNewLineState

public AbstractParserState getNewLineState()
Get the state for the beginning of a new line.

Returns: start of line state

parse

public void parse(Reader reader)
Collects all included files from the content of the reader.

Parameters: reader character reader containing a FORTRAN source module

Throws: IOException throw if I/O error during parse

Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.