Uses of Class
org.antlr.v4.runtime.tree.pattern.ParseTreePattern
-
Packages that use ParseTreePattern Package Description org.antlr.v4.runtime org.antlr.v4.runtime.tree.pattern -
-
Uses of ParseTreePattern in org.antlr.v4.runtime
Methods in org.antlr.v4.runtime that return ParseTreePattern Modifier and Type Method Description ParseTreePattern
Parser. compileParseTreePattern(String pattern, int patternRuleIndex)
The preferred method of getting a tree pattern.ParseTreePattern
Parser. compileParseTreePattern(String pattern, int patternRuleIndex, Lexer lexer)
The same asParser.compileParseTreePattern(String, int)
but specify aLexer
rather than trying to deduce it from this parser. -
Uses of ParseTreePattern in org.antlr.v4.runtime.tree.pattern
Methods in org.antlr.v4.runtime.tree.pattern that return ParseTreePattern Modifier and Type Method Description ParseTreePattern
ParseTreePatternMatcher. compile(String pattern, int patternRuleIndex)
For repeated use of a tree pattern, compile it to aParseTreePattern
using this method.ParseTreePattern
ParseTreeMatch. getPattern()
Get the tree pattern we are matching against.Methods in org.antlr.v4.runtime.tree.pattern with parameters of type ParseTreePattern Modifier and Type Method Description ParseTreeMatch
ParseTreePatternMatcher. match(ParseTree tree, ParseTreePattern pattern)
Comparepattern
matched againsttree
and return aParseTreeMatch
object that contains the matched elements, or the node at which the match failed.boolean
ParseTreePatternMatcher. matches(ParseTree tree, ParseTreePattern pattern)
Doespattern
matched as rule patternRuleIndex match tree? Pass in a compiled pattern instead of a string representation of a tree pattern.Constructors in org.antlr.v4.runtime.tree.pattern with parameters of type ParseTreePattern Constructor Description ParseTreeMatch(ParseTree tree, ParseTreePattern pattern, MultiMap<String,ParseTree> labels, ParseTree mismatchedNode)
Constructs a new instance ofParseTreeMatch
from the specified parse tree and pattern.
-