org.parboiled.parserunners
Class BasicParseRunner.Handler

java.lang.Object
  extended by org.parboiled.parserunners.BasicParseRunner.Handler
All Implemented Interfaces:
MatchHandler
Enclosing class:
BasicParseRunner<V>

public static final class BasicParseRunner.Handler
extends java.lang.Object
implements MatchHandler

The most trivial MatchHandler implementation. Simply delegates to the given Context for performing the match, without any additional logic.


Constructor Summary
BasicParseRunner.Handler()
           
 
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

BasicParseRunner.Handler

public BasicParseRunner.Handler()
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