Class MySqlAntlrDdlParserListener

java.lang.Object
io.debezium.ddl.parser.mysql.generated.MySqlParserBaseListener
io.debezium.connector.mysql.antlr.listener.MySqlAntlrDdlParserListener
All Implemented Interfaces:
AntlrDdlParserListener, MySqlParserListener, org.antlr.v4.runtime.tree.ParseTreeListener

public class MySqlAntlrDdlParserListener extends MySqlParserBaseListener implements AntlrDdlParserListener
Parser listener for MySQL column definition queries. Its purpose is to delegate events to defined collection of concrete parser listeners. Each listener handles the specified type of DDL statement.

This listener is catching all occurred parsing exceptions and implements a skipping logic for BEGIN ... END statements. No event will be delegated during skipping phase.

  • Field Details

    • listeners

      private final List<org.antlr.v4.runtime.tree.ParseTreeListener> listeners
      Collection of listeners for delegation of events.
    • skipNodes

      private boolean skipNodes
      Flag for skipping phase.
    • skippedNodesCount

      private int skippedNodesCount
      Count of skipped nodes. Each enter event during skipping phase will increase the counter and each exit event will decrease it. When counter will be decreased to 0, the skipping phase will end.
    • errors

      private final Collection<ParsingException> errors
      Collection of catched exceptions.
  • Constructor Details

  • Method Details