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, toString
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren
public final Action action
public final java.util.List<ContextAware> contextAwares
public final boolean skipInPredicates
public ActionMatcher(Action action)
public MatcherContext getSubContext(MatcherContext context)
Matcher
getSubContext
in interface Matcher
getSubContext
in class AbstractMatcher
context
- the parent contextpublic <V> boolean match(MatcherContext<V> context)
Matcher
context
- the MatcherContextpublic Rule suppressNode()
Rule
suppressNode
in interface Rule
suppressNode
in class AbstractMatcher
public <R> R accept(MatcherVisitor<R> visitor)
Matcher
visitor
- the visitor