|
|||||||||
| 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.BasicParseRunner<V>
public class BasicParseRunner<V>
The most basic of all ParseRunner implementations. It runs a rule against a given input text and builds a
corresponding ParsingResult instance. However, it does not report any parse errors nor recover from them.
Instead it simply marks the ParsingResult as "unmatched" if the input is not valid with regard to the rule grammar.
It never causes the parser to perform more than one parsing run and is the fastest way to determine
whether a given input conforms to the rule grammar.
| Constructor Summary | |
|---|---|
BasicParseRunner(Rule rule)
Creates a new BasicParseRunner instance for the given rule. |
|
| 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. |
|
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 BasicParseRunner(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
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 | ||||||||