Package org.antlr.v4.runtime.tree
Interface ParseTreeListener
-
- All Known Implementing Classes:
Parser.TraceListener
,Parser.TrimToSizeListener
public interface ParseTreeListener
This interface describes the minimal core of methods triggered byParseTreeWalker
. E.g., ParseTreeWalker walker = new ParseTreeWalker(); walker.walk(myParseTreeListener, myParseTree); <-- triggers events in your listener If you want to trigger events in multiple listeners during a single tree walk, you can use the ParseTreeDispatcher object available at https://github.com/antlr/antlr4/issues/841
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
enterEveryRule(ParserRuleContext ctx)
void
exitEveryRule(ParserRuleContext ctx)
void
visitErrorNode(ErrorNode node)
void
visitTerminal(TerminalNode node)
-
-
-
Method Detail
-
visitTerminal
void visitTerminal(TerminalNode node)
-
visitErrorNode
void visitErrorNode(ErrorNode node)
-
enterEveryRule
void enterEveryRule(ParserRuleContext ctx)
-
exitEveryRule
void exitEveryRule(ParserRuleContext ctx)
-
-