|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.parboiled.parserunners.AbstractParseRunner<V>
org.parboiled.parserunners.ErrorReportingParseRunner<V>
public class ErrorReportingParseRunner<V>
A ParseRunner implementation that creates an
InvalidInputError for the error at a known error location.
It never causes the parser to perform more than one parsing run and is rarely used directly.
Instead its functionality is relied upon by the ReportingParseRunner and RecoveringParseRunner classes.
| Constructor Summary | |
|---|---|
ErrorReportingParseRunner(Rule rule,
int errorIndex)
Creates a new ErrorReportingParseRunner instance for the given rule and the given errorIndex. |
|
ErrorReportingParseRunner(Rule rule,
int errorIndex,
MatchHandler inner)
Creates a new ErrorReportingParseRunner instance for the given rule and the given errorIndex. |
|
| Method Summary | |
|---|---|
boolean |
match(MatcherContext<?> context)
Runs the given MatcherContext. |
ParsingResult<V> |
run(InputBuffer inputBuffer)
Performs the actual parse and creates a corresponding ParsingResult instance. |
| Methods inherited from class org.parboiled.parserunners.AbstractParseRunner |
|---|
getParseErrors, getRootMatcher, getValueStack, run, run, withParseErrors, withValueStack |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorReportingParseRunner(Rule rule,
int errorIndex)
rule - the parser ruleerrorIndex - the index of the error to report
public ErrorReportingParseRunner(Rule rule,
int errorIndex,
MatchHandler inner)
rule - the parser ruleerrorIndex - the index of the error to reportinner - another MatchHandler to delegate the actual match handling to, can be null| Method Detail |
|---|
public ParsingResult<V> run(InputBuffer inputBuffer)
ParseRunner
run in interface ParseRunner<V>inputBuffer - the inputBuffer to use
public boolean match(MatcherContext<?> context)
MatchHandler
match in interface MatchHandlercontext - the MatcherContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||