public class ParseTreeWalker extends Object
Modifier and Type | Field and Description |
---|---|
static ParseTreeWalker |
DEFAULT |
Constructor and Description |
---|
ParseTreeWalker() |
Modifier and Type | Method and Description |
---|---|
protected void |
enterRule(ParseTreeListener listener,
RuleNode r)
The discovery of a rule node, involves sending two events: the generic
ParseTreeListener.enterEveryRule(org.antlr.v4.runtime.ParserRuleContext) and a
RuleContext -specific event. |
protected void |
exitRule(ParseTreeListener listener,
RuleNode r) |
void |
walk(ParseTreeListener listener,
ParseTree t) |
public static final ParseTreeWalker DEFAULT
public void walk(ParseTreeListener listener, ParseTree t)
protected void enterRule(ParseTreeListener listener, RuleNode r)
ParseTreeListener.enterEveryRule(org.antlr.v4.runtime.ParserRuleContext)
and a
RuleContext
-specific event. First we trigger the generic and then
the rule specific. We to them in reverse order upon finishing the node.protected void exitRule(ParseTreeListener listener, RuleNode r)
Copyright © 1992–2018 ANTLR. All rights reserved.