Package org.codehaus.mojo.natives.parser
Class AbstractParserState
- java.lang.Object
-
- org.codehaus.mojo.natives.parser.AbstractParserState
-
- Direct Known Subclasses:
BranchState
,CaseInsensitiveLetterState
,FilenameState
,LetterState
,PostE
,WhitespaceOrCaseInsensitiveLetterState
,WhitespaceOrLetterState
public abstract class AbstractParserState extends Object
An base class for objects that represent the state of an AbstractParser.- Author:
- CurtArnold
- See Also:
AbstractParser
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractParserState(AbstractParser parser)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractParserState
consume(char ch)
Consume a characterprotected AbstractParser
getParser()
-
-
-
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()
-
-