Interface ParseTreeListener

  • All Known Implementing Classes:
    Parser.TraceListener, Parser.TrimToSizeListener

    public interface ParseTreeListener
    This interface describes the minimal core of methods triggered by ParseTreeWalker. 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