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 ParseTreePatternParser. compileParseTreePattern(String pattern, int patternRuleIndex)The preferred method of getting a tree pattern.ParseTreePatternParser. compileParseTreePattern(String pattern, int patternRuleIndex, Lexer lexer)The same asParser.compileParseTreePattern(String, int)but specify aLexerrather 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 ParseTreePatternParseTreePatternMatcher. compile(String pattern, int patternRuleIndex)For repeated use of a tree pattern, compile it to aParseTreePatternusing this method.ParseTreePatternParseTreeMatch. 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 ParseTreeMatchParseTreePatternMatcher. match(ParseTree tree, ParseTreePattern pattern)Comparepatternmatched againsttreeand return aParseTreeMatchobject that contains the matched elements, or the node at which the match failed.booleanParseTreePatternMatcher. matches(ParseTree tree, ParseTreePattern pattern)Doespatternmatched 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 ofParseTreeMatchfrom the specified parse tree and pattern.
-