net.sf.antcontrib.cpptasks.parser

Class AbstractParserState

Known Direct Subclasses:
BranchState, CaseInsensitiveLetterState, ConsumeToSpaceOrNewLine, FilenameState, LetterState, PostE, QuoteBranchState, WhitespaceOrCaseInsensitiveLetterState, WhitespaceOrLetterState

public abstract class AbstractParserState
extends java.lang.Object

An base class for objects that represent the state of an AbstractParser.
Author:
CurtArnold
See Also:
AbstractParser

Constructor Summary

AbstractParserState(AbstractParser parser)

Method Summary

abstract AbstractParserState
consume(char ch)
Consume a character
protected AbstractParser
getParser()

Constructor Details

AbstractParserState

protected AbstractParserState(AbstractParser parser)

Method Details

consume

public abstract AbstractParserState consume(char ch)
Consume a character
Returns:
new state, may be null to ignore the rest of the line

getParser

protected AbstractParser getParser()

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.