Interface SymbolTableIterator

All Superinterfaces:
AutoCloseable

public interface SymbolTableIterator extends AutoCloseable
iterator for symbol tables.
Author:
Juergen Baier
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closes this iterator.
    long
    get the code of the current element
    boolean
    Moves to the next symbol table element.
    get a symbol object for the current element
    boolean
    is there a next element?
    get next element
  • Method Details

    • getNext

      boolean getNext() throws SymboltableException, IOException
      Moves to the next symbol table element.
      Returns true if there is such an element, false otherwise.
      Returns:
      true if there is a valid next element, false otherwise.
      Throws:
      SymboltableException - if an error occurs
      IOException
    • hasNext

      boolean hasNext()
      is there a next element?
      Returns:
    • next

      Object next()
      get next element
      Returns:
    • getSymbol

      Object getSymbol() throws SymboltableException
      get a symbol object for the current element
      Returns:
      the symbol object for the current element
      Throws:
      SymboltableException - if an error occurs
    • getCode

      long getCode()
      get the code of the current element
      Returns:
      the code of the current element
    • close

      void close()
      closes this iterator.
      Specified by:
      close in interface AutoCloseable