net.sf.antcontrib.cpptasks.parser
Class AbstractParserState

java.lang.Object
  |
  +--net.sf.antcontrib.cpptasks.parser.AbstractParserState
Direct Known Subclasses:
BranchState, ConsumeToSpaceOrNewLine, FilenameState, LetterState, PostE, QuoteBranchState, 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

getParser

protected AbstractParser getParser()

consume

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


Copyright © 2001-2002 Ant-Contrib project. All Rights Reserved.