Package | Description |
---|---|
org.antlr.v4.runtime.tree.pattern |
Modifier and Type | Method | Description |
---|---|---|
ParseTreeMatch |
ParseTreePattern.match(ParseTree tree) |
Match a specific parse tree against this tree pattern.
|
ParseTreeMatch |
ParseTreePatternMatcher.match(ParseTree tree,
String pattern,
int patternRuleIndex) |
Compare
pattern matched as rule patternRuleIndex against
tree and return a ParseTreeMatch object that contains the
matched elements, or the node at which the match failed. |
ParseTreeMatch |
ParseTreePatternMatcher.match(ParseTree tree,
ParseTreePattern pattern) |
Compare
pattern matched against tree and return a
ParseTreeMatch object that contains the matched elements, or the
node at which the match failed. |
Modifier and Type | Method | Description |
---|---|---|
List<ParseTreeMatch> |
ParseTreePattern.findAll(ParseTree tree,
String xpath) |
Find all nodes using XPath and then try to match those subtrees against
this tree pattern.
|
Copyright © 1992–2019 ANTLR. All rights reserved.