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 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 ParseTreePatternModifier and TypeMethodDescriptionFor repeated use of a tree pattern, compile it to aParseTreePattern
using 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) 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 ParseTreePatternModifierConstructorDescriptionParseTreeMatch
(ParseTree tree, ParseTreePattern pattern, MultiMap<String, ParseTree> labels, ParseTree mismatchedNode) Constructs a new instance ofParseTreeMatch
from the specified parse tree and pattern.