org.parboiled
Interface MatchHandler
- All Known Implementing Classes:
- BasicParseRunner, ErrorLocatingParseRunner, ErrorReportingParseRunner, ProfilingParseRunner, TracingParseRunner
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.
match
boolean match(MatcherContext<?> context)
- Runs the given MatcherContext.
- Parameters:
context - the MatcherContext
- Returns:
- true if matched