Class AbstractParserState
- java.lang.Object
-
- 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.ObjectAn base class for objects that represent the state of an AbstractParser.- Author:
- CurtArnold
- See Also:
AbstractParser
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractParserState(AbstractParser parser)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractParserStateconsume(char ch)Consume a characterprotected AbstractParsergetParser()
-
-
-
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()
-
-