|
|||||||||
| 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.ReportingParseRunner<V>
public class ReportingParseRunner<V>
A ParseRunner implementation that properly reports the first InvalidInputError if the input
does not conform to the rule grammar.
It performs exactly as the BasicParseRunner on valid input, however, on invalid input two more parsing
runs are initiated: one for recording the first parse error and one for collecting the error report information.
| Constructor Summary | |
|---|---|
ReportingParseRunner(Rule rule)
Creates a new ReportingParseRunner instance for the given rule. |
|
| Method Summary | ||
|---|---|---|
ParsingResult<V> |
run(InputBuffer inputBuffer)
Performs the actual parse and creates a corresponding ParsingResult instance. |
|
static
|
run(Rule rule,
java.lang.String input)
Deprecated. As of 0.11.0 you should use the "regular" constructor and one of the "run" methods rather than this static method. This method will be removed in one of the coming releases. |
|
| 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 ReportingParseRunner(Rule rule)
rule - the parser rule| Method Detail |
|---|
@Deprecated
public static <V> ParsingResult<V> run(Rule rule,
java.lang.String input)
AbstractParseRunner.run(String) method invocation.
rule - the parser rule to runinput - the input text to run on
public ParsingResult<V> run(InputBuffer inputBuffer)
ParseRunner
inputBuffer - the inputBuffer to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||