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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ParsingResult<V> createParsingResult(boolean matched, MatcherContext<V> rootContext) protected MatcherContext<V> createRootContext(InputBuffer inputBuffer, MatchHandler matchHandler, boolean fastStringMatching) protected voidrun(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ParseRunner
run
-
Constructor Details
-
AbstractParseRunner
-
-
Method Details
-
getRootMatcher
-
withParseErrors
Description copied from interface:ParseRunnerInitializes the parse runner with the given error list.- Specified by:
withParseErrorsin interfaceParseRunner<V>- Parameters:
parseErrors- the error list to start off with- Returns:
- this instance
-
getParseErrors
-
withValueStack
Description copied from interface:ParseRunnerInitializes the parse runner with the given ValueStack instance.- Specified by:
withValueStackin interfaceParseRunner<V>- Parameters:
valueStack- the ValueStack to use- Returns:
- this instance
-
getValueStack
-
run
Description copied from interface:ParseRunnerPerforms the actual parse and creates a corresponding ParsingResult instance.- Specified by:
runin interfaceParseRunner<V>- Parameters:
input- the input text to parse- Returns:
- the ParsingResult for the run
-
run
Description copied from interface:ParseRunnerPerforms the actual parse and creates a corresponding ParsingResult instance.- Specified by:
runin interfaceParseRunner<V>- Parameters:
input- the input text to parse- Returns:
- the ParsingResult for the run
-
resetValueStack
protected void resetValueStack() -
createRootContext
protected MatcherContext<V> createRootContext(InputBuffer inputBuffer, MatchHandler matchHandler, boolean fastStringMatching) -
createParsingResult
-