Uses of Class
org.antlr.v4.runtime.tree.pattern.ParseTreePattern
Packages that use ParseTreePattern
-
Uses of ParseTreePattern in org.antlr.v4.runtime
Methods in org.antlr.v4.runtime that return ParseTreePatternModifier and TypeMethodDescriptionParser.compileParseTreePattern(String pattern, int patternRuleIndex) The preferred method of getting a tree pattern.Parser.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 ParseTreePatternModifier and TypeMethodDescriptionFor repeated use of a tree pattern, compile it to aParseTreePatternusing this method.ParseTreeMatch.getPattern()Get the tree pattern we are matching against.Methods in org.antlr.v4.runtime.tree.pattern with parameters of type ParseTreePatternModifier and TypeMethodDescriptionParseTreePatternMatcher.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 ParseTreePatternModifierConstructorDescriptionParseTreeMatch(ParseTree tree, ParseTreePattern pattern, MultiMap<String, ParseTree> labels, ParseTree mismatchedNode) Constructs a new instance ofParseTreeMatchfrom the specified parse tree and pattern.