org.parboiled
Interface MatchHandler

All Known Implementing Classes:
BasicParseRunner.Handler, ProfilingParseRunner.Handler, RecordingParseRunner.Handler, RecoveringParseRunner.Handler, ReportingParseRunner.Handler, TracingParseRunner.Handler

public interface MatchHandler

A MatchHandler is responsible for actually running the match of a given MatcherContext. Many times it wraps the actual call to the matcher with some custom logic, e.g. for error handling.


Method Summary
 boolean match(MatcherContext<?> context)
          Runs the given MatcherContext.
 boolean matchRoot(MatcherContext<?> rootContext)
          Runs the root MatcherContext.
 

Method Detail

matchRoot

boolean matchRoot(MatcherContext<?> rootContext)
Runs the root MatcherContext.

Parameters:
rootContext - the root MatcherContext.
Returns:
true if matched

match

boolean match(MatcherContext<?> context)
Runs the given MatcherContext.

Parameters:
context - the MatcherContext
Returns:
true if matched