Class 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 Detail

      • 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.
    • Constructor Detail

      • MySqlAntlrDdlParserListener

        public MySqlAntlrDdlParserListener​(MySqlAntlrDdlParser parser)