ParseTreePatternMatcher.match

Compare {@code pattern} matched as rule {@code patternRuleIndex} against {@code tree} and return a {@link ParseTreeMatch} object that contains the matched elements, or the node at which the match failed.

  1. ParseTreeMatch match(ParseTree tree, string pattern, int patternRuleIndex)
    class ParseTreePatternMatcher
  2. ParseTreeMatch match(ParseTree tree, ParseTreePattern pattern)

Meta