Class ActionMatcher
java.lang.Object
org.parboiled.trees.ImmutableGraphNode<Matcher>
org.parboiled.matchers.AbstractMatcher
org.parboiled.matchers.ActionMatcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(MatcherVisitor<R> visitor) Accepts the given matcher visitor.getSubContext(MatcherContext context) Creates a context for the matching of this matcher using the given parent context.<V> booleanmatch(MatcherContext<V> context) Tries a match on the given MatcherContext.Instructs parboiled to not create a parse tree node for this rule and all subrules, which can significantly increase parsing performance.Methods inherited from class AbstractMatcher
areMismatchesMemoed, areSubnodesSuppressed, getLabel, getTag, hasCustomLabel, isNodeSkipped, isNodeSuppressed, label, memoMismatches, setTag, skipNode, suppressSubnodes, toStringMethods inherited from class ImmutableGraphNode
getChildrenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GraphNode
getChildren
-
Field Details
-
action
-
contextAwares
-
skipInPredicates
public final boolean skipInPredicates
-
-
Constructor Details
-
ActionMatcher
-
-
Method Details
-
getSubContext
Description copied from interface:MatcherCreates a context for the matching of this matcher using the given parent context.- Specified by:
getSubContextin interfaceMatcher- Overrides:
getSubContextin classAbstractMatcher- Parameters:
context- the parent context- Returns:
- the context this matcher is to be run in
-
match
Description copied from interface:MatcherTries a match on the given MatcherContext.- Parameters:
context- the MatcherContext- Returns:
- true if the match was successful
-
suppressNode
Description copied from interface:RuleInstructs parboiled to not create a parse tree node for this rule and all subrules, which can significantly increase parsing performance. Corresponds to the @SuppressNode annotation.- Specified by:
suppressNodein interfaceRule- Overrides:
suppressNodein classAbstractMatcher- Returns:
- this Rule
-
accept
Description copied from interface:MatcherAccepts the given matcher visitor.- Parameters:
visitor- the visitor- Returns:
- the value returned by the given visitor
-