public abstract class AbstractParseRunner<V> extends Object implements ParseRunner<V>
Modifier and Type | Field and Description |
---|---|
protected Matcher |
rootMatcher |
protected Object |
stackSnapshot |
protected ValueStack<V> |
valueStack |
Modifier | Constructor and Description |
---|---|
protected |
AbstractParseRunner(Rule rule) |
Modifier and Type | Method and Description |
---|---|
protected ParsingResult<V> |
createParsingResult(boolean matched,
MatcherContext<V> rootContext) |
protected MatcherContext<V> |
createRootContext(InputBuffer inputBuffer,
MatchHandler matchHandler) |
ValueStack<V> |
getValueStack() |
protected void |
resetValueStack() |
ParsingResult<V> |
run(CharSequence input)
Performs the actual parse and creates a corresponding ParsingResult instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
protected final Matcher rootMatcher
protected ValueStack<V> valueStack
protected Object stackSnapshot
public final ValueStack<V> getValueStack()
public final ParsingResult<V> run(CharSequence input)
ParseRunner
run
in interface ParseRunner<V>
input
- the input text to parseprotected final void resetValueStack()
protected MatcherContext<V> createRootContext(InputBuffer inputBuffer, MatchHandler matchHandler)
protected ParsingResult<V> createParsingResult(boolean matched, MatcherContext<V> rootContext)