net.sf.antcontrib.cpptasks.parser
Class AbstractParserState

java.lang.Object
  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
Direct Known 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
protected AbstractParserState(AbstractParser parser)
           
 
Method Summary
abstract  AbstractParserState consume(char ch)
          Consume a character
protected  AbstractParser getParser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractParserState

protected AbstractParserState(AbstractParser parser)
Method Detail

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 © 2001-2008 Ant-Contrib Project. All Rights Reserved.