coins.sym
インタフェース SymNestIterator

既知の実装クラスの一覧:
SymNestIteratorImpl

public interface SymNestIterator

SymNestIterator interface Iterator that traverse symbols in given symbol table and its children.


メソッドの概要
 boolean hasNext()
          hasNext True if there are symbols remaining in the specified symbol table or its children, false otherwise.
 Sym next()
          next Get next symbol in the specified symbol table and its children.
 Var nextVar()
          nextVar Get the next symbol in the specified symbol table and its children skipping symbols that are not a Var symbol.
 

メソッドの詳細

next

public Sym next()
next Get next symbol in the specified symbol table and its children. If all symbols are traversed in the specified symbol table, then symbols in the first child symbol table and then its brothers are traversed, that is, traversing in the order: this, 1st child of this, 1st child of 1st child of this, ... 2nd child of 1st child of this, ... ... 2nd child of this, 1st child of 2nd child of this, ... ... ... recursively.


nextVar

public Var nextVar()
nextVar Get the next symbol in the specified symbol table and its children 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.


hasNext

public boolean hasNext()
hasNext True if there are symbols remaining in the specified symbol table or its children, false otherwise.