Interface SymbolTableIterator
- All Superinterfaces:
AutoCloseable
iterator for symbol tables.
- Author:
- Juergen Baier
-
Method Summary
-
Method Details
-
getNext
Moves to the next symbol table element.
Returnstrue
if there is such an element,false
otherwise.- Returns:
true
if there is a valid next element,false
otherwise.- Throws:
SymboltableException
- if an error occursIOException
-
hasNext
boolean hasNext()is there a next element?- Returns:
-
next
Object next()get next element- Returns:
-
getSymbol
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 interfaceAutoCloseable
-