org.parboiled.parserunners
Class TracingParseRunner.Handler

java.lang.Object
  extended by 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.


Constructor Summary
TracingParseRunner.Handler(java.lang.StringBuilder log, Predicate<Tuple2<Context<?>,java.lang.Boolean>> filter)
           
 
Method Summary
 boolean match(MatcherContext<?> context)
          Runs the given MatcherContext.
 boolean matchRoot(MatcherContext<?> rootContext)
          Runs the root MatcherContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TracingParseRunner.Handler

public TracingParseRunner.Handler(java.lang.StringBuilder log,
                                  Predicate<Tuple2<Context<?>,java.lang.Boolean>> filter)
Method Detail

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