public ParseTreeMatch match(ParseTree tree, String pattern, int patternRuleIndex) {
		ParseTreePattern p = compile(pattern, patternRuleIndex);
		return match(tree, p);
	}
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.
runtime/Java/src/org/antlr/v4/runtime/tree/pattern/ParseTreePatternMatcher.java