coins.sym
Class SymIteratorImpl

java.lang.Object
  extended bycoins.sym.SymIteratorImpl
All Implemented Interfaces:
SymIterator

public class SymIteratorImpl
extends java.lang.Object
implements SymIterator

SymIteratorImpl class


Field Summary
 Sym fSymNext
           
 SymTable fSymTable
           
 
Constructor Summary
SymIteratorImpl(SymTable pSymTable)
           
 
Method Summary
 boolean hasNext()
          hasNext True if there are symbols remaining in the specified symbol table, false otherwise.
 Sym next()
          next Get next symbol in the specified symbol table.
 Var nextVar()
          nextVar Get next symbol in the specified symbol table skipping symbols that are not a Var symbol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fSymTable

public SymTable fSymTable

fSymNext

public Sym fSymNext
Constructor Detail

SymIteratorImpl

public SymIteratorImpl(SymTable pSymTable)
Method Detail

next

public Sym next()
Description copied from interface: SymIterator
next Get next symbol in the specified symbol table.

Specified by:
next in interface SymIterator

nextVar

public Var nextVar()
Description copied from interface: SymIterator
nextVar Get next symbol in the specified symbol table skipping symbols that are not a Var symbol. If the last symbol is not a variable, then null will be returned as the last symbol.

Specified by:
nextVar in interface SymIterator

hasNext

public boolean hasNext()
Description copied from interface: SymIterator
hasNext True if there are symbols remaining in the specified symbol table, false otherwise.

Specified by:
hasNext in interface SymIterator