Interface SymbolIterator

All Superinterfaces:
Iterable<Symbol>, Iterator<Symbol>
All Known Implementing Classes:
SymbolIteratorAdapter, TypeFilteredSymbolIterator

public interface SymbolIterator extends Iterator<Symbol>, Iterable<Symbol>
Iterator defined to return Symbol objects.
See Also:
  • Field Details

  • Method Details

    • hasNext

      boolean hasNext()
      Return true if there is a next symbol.
      Specified by:
      hasNext in interface Iterator<Symbol>
    • next

      Symbol next()
      Get the next symbol or null if no more symbols.

      NOTE: This deviates from the standard Iterator interface by returning null instead of throwing an exception.

      Specified by:
      next in interface Iterator<Symbol>