Class ActionMatcher

    • Field Detail

      • action

        public final Action action
      • skipInPredicates

        public final boolean skipInPredicates
    • Constructor Detail

      • ActionMatcher

        public ActionMatcher​(Action action)
    • Method Detail

      • match

        public <V> boolean match​(MatcherContext<V> context)
        Description copied from interface: Matcher
        Tries a match on the given MatcherContext.
        Parameters:
        context - the MatcherContext
        Returns:
        true if the match was successful
      • suppressNode

        public Rule suppressNode()
        Description copied from interface: Rule
        Instructs 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:
        suppressNode in interface Rule
        Overrides:
        suppressNode in class AbstractMatcher
        Returns:
        this Rule
      • accept

        public <R> R accept​(MatcherVisitor<R> visitor)
        Description copied from interface: Matcher
        Accepts the given matcher visitor.
        Parameters:
        visitor - the visitor
        Returns:
        the value returned by the given visitor