Package org.parboiled.parserunners
Class AbstractParseRunner<V>
java.lang.Object
org.parboiled.parserunners.AbstractParseRunner<V>
- All Implemented Interfaces:
ParseRunner<V>
- Direct Known Subclasses:
BasicParseRunner
,ErrorLocatingParseRunner
,ErrorReportingParseRunner
,ProfilingParseRunner
,RecoveringParseRunner
,ReportingParseRunner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrun
(char[] input) Performs the actual parse and creates a corresponding ParsingResult instance.Performs the actual parse and creates a corresponding ParsingResult instance.withParseErrors
(List<ParseError> parseErrors) Initializes the parse runner with the given error list.withValueStack
(ValueStack<V> valueStack) Initializes the parse runner with the given ValueStack instance.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.parboiled.parserunners.ParseRunner
run
-
Constructor Details
-
AbstractParseRunner
-
-
Method Details
-
getRootMatcher
-
withParseErrors
Description copied from interface:ParseRunner
Initializes the parse runner with the given error list.- Specified by:
withParseErrors
in interfaceParseRunner<V>
- Parameters:
parseErrors
- the error list to start off with- Returns:
- this instance
-
getParseErrors
-
withValueStack
Description copied from interface:ParseRunner
Initializes the parse runner with the given ValueStack instance.- Specified by:
withValueStack
in interfaceParseRunner<V>
- Parameters:
valueStack
- the ValueStack to use- Returns:
- this instance
-
getValueStack
-
run
Description copied from interface:ParseRunner
Performs the actual parse and creates a corresponding ParsingResult instance.- Specified by:
run
in interfaceParseRunner<V>
- Parameters:
input
- the input text to parse- Returns:
- the ParsingResult for the run
-
run
Description copied from interface:ParseRunner
Performs the actual parse and creates a corresponding ParsingResult instance.- Specified by:
run
in interfaceParseRunner<V>
- Parameters:
input
- the input text to parse- Returns:
- the ParsingResult for the run
-