public abstract class AbstractParseRunner<V> extends java.lang.Object implements ParseRunner<V>
| Constructor and Description |
|---|
AbstractParseRunner(Rule rule) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ParseError> |
getParseErrors() |
Matcher |
getRootMatcher() |
ValueStack<V> |
getValueStack() |
ParsingResult<V> |
run(char[] input)
Performs the actual parse and creates a corresponding ParsingResult instance.
|
ParsingResult<V> |
run(java.lang.String input)
Performs the actual parse and creates a corresponding ParsingResult instance.
|
ParseRunner<V> |
withParseErrors(java.util.List<ParseError> parseErrors)
Initializes the parse runner with the given error list.
|
ParseRunner<V> |
withValueStack(ValueStack<V> valueStack)
Initializes the parse runner with the given ValueStack instance.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunpublic AbstractParseRunner(Rule rule)
public Matcher getRootMatcher()
public ParseRunner<V> withParseErrors(java.util.List<ParseError> parseErrors)
ParseRunnerwithParseErrors in interface ParseRunner<V>parseErrors - the error list to start off withpublic java.util.List<ParseError> getParseErrors()
public ParseRunner<V> withValueStack(ValueStack<V> valueStack)
ParseRunnerwithValueStack in interface ParseRunner<V>valueStack - the ValueStack to usepublic ValueStack<V> getValueStack()
public ParsingResult<V> run(java.lang.String input)
ParseRunnerrun in interface ParseRunner<V>input - the input text to parsepublic ParsingResult<V> run(char[] input)
ParseRunnerrun in interface ParseRunner<V>input - the input text to parse