Class SimpleDdlParserListener

    • Constructor Detail

      • SimpleDdlParserListener

        public SimpleDdlParserListener()
    • Method Detail

      • total

        public int total()
        Get the total number of events that have been handled by this listener.
        Returns:
        the total number of events
      • remaining

        public int remaining()
        Get the number of events currently held by this listener that have yet to be checked.
        Returns:
        the number of remaining events
      • assertNoMoreEvents

        public void assertNoMoreEvents()
        Assert that there is no next event.
      • assertNext

        public SimpleDdlParserListener.EventAssert assertNext()
        Perform assertions on the next event seen by this listener.
        Returns:
        the next event, or null if there is no event
      • forEach

        public void forEach​(Consumer<DdlParserListener.Event> eventConsumer)
        Perform an operation on each of the events.
        Parameters:
        eventConsumer - the event consumer function; may not be null