org.parboiled.parserunners
Class TracingParseRunner.Handler
java.lang.Object
org.parboiled.parserunners.TracingParseRunner.Handler
- All Implemented Interfaces:
- MatchHandler
- Enclosing class:
- TracingParseRunner<V>
public static class TracingParseRunner.Handler
- extends java.lang.Object
- implements MatchHandler
A MatchHandler implementation that reports the InvalidInputError at a given error index.
For the actual matching this handler relies on another, inner MatchHandler instance it delegates to.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TracingParseRunner.Handler
public TracingParseRunner.Handler(java.lang.StringBuilder log,
Predicate<Tuple2<Context<?>,java.lang.Boolean>> filter)
matchRoot
public boolean matchRoot(MatcherContext<?> rootContext)
- Description copied from interface:
MatchHandler
- Runs the root MatcherContext.
- Specified by:
matchRoot in interface MatchHandler
- Parameters:
rootContext - the root MatcherContext.
- Returns:
- true if matched
match
public boolean match(MatcherContext<?> context)
- Description copied from interface:
MatchHandler
- Runs the given MatcherContext.
- Specified by:
match in interface MatchHandler
- Parameters:
context - the MatcherContext
- Returns:
- true if matched