public class ActionMatcher extends AbstractMatcher
| Modifier and Type | Field and Description |
|---|---|
Action |
action |
java.util.List<ContextAware> |
contextAwares |
boolean |
skipInPredicates |
| Constructor and Description |
|---|
ActionMatcher(Action action) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(MatcherVisitor<R> visitor)
Accepts the given matcher visitor.
|
MatcherContext |
getSubContext(MatcherContext context)
Creates a context for the matching of this matcher using the given parent context.
|
<V> boolean |
match(MatcherContext<V> context)
Tries a match on the given MatcherContext.
|
Rule |
suppressNode()
Instructs parboiled to not create a parse tree node for this rule and all subrules,
which can significantly increase parsing performance.
|
areMismatchesMemoed, areSubnodesSuppressed, getLabel, getTag, hasCustomLabel, isNodeSkipped, isNodeSuppressed, label, memoMismatches, setTag, skipNode, suppressSubnodes, toStringgetChildrenequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildrenpublic final Action action
public final java.util.List<ContextAware> contextAwares
public final boolean skipInPredicates
public ActionMatcher(Action action)
public MatcherContext getSubContext(MatcherContext context)
MatchergetSubContext in interface MatchergetSubContext in class AbstractMatchercontext - the parent contextpublic <V> boolean match(MatcherContext<V> context)
Matchercontext - the MatcherContextpublic Rule suppressNode()
RulesuppressNode in interface RulesuppressNode in class AbstractMatcherpublic <R> R accept(MatcherVisitor<R> visitor)
Matchervisitor - the visitor