public boolean matches(ParseTree tree, ParseTreePattern pattern) {
		MultiMap<String, ParseTree> labels = new MultiMap<String, ParseTree>();
		ParseTree mismatchedNode = matchImpl(tree, pattern.getPatternTree(), labels);
		return mismatchedNode == null;
	}
Does {@code pattern} matched as rule patternRuleIndex match tree? Pass in a
 compiled pattern instead of a string representation of a tree pattern.
runtime/Java/src/org/antlr/v4/runtime/tree/pattern/ParseTreePatternMatcher.java