public boolean matches(ParseTree tree, String pattern, int patternRuleIndex) {
		ParseTreePattern p = compile(pattern, patternRuleIndex);
		return matches(tree, p);
	}
Does {@code pattern} matched as rule {@code patternRuleIndex} match {@code tree}?
runtime/Java/src/org/antlr/v4/runtime/tree/pattern/ParseTreePatternMatcher.java