Interface SymbolTableIterator
- All Superinterfaces:
AutoCloseable
iterator for symbol tables.
- Author:
- Juergen Baier
-
Method Summary
-
Method Details
-
getNext
Moves to the next symbol table element.
Returnstrueif there is such an element,falseotherwise.- Returns:
trueif there is a valid next element,falseotherwise.- 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:
closein interfaceAutoCloseable
-