public boolean matches(ParseTree tree, String pattern, int patternRuleIndex) {ParseTreePattern p = compile(pattern, patternRuleIndex);return matches(tree, p);}
public virtual bool Matches(IParseTree tree, string pattern, int patternRuleIndex){ParseTreePattern p = Compile(pattern, patternRuleIndex);return Matches(tree, p);}