coins.sym
クラス SymNestIteratorImpl

java.lang.Object
  |
  +--coins.sym.SymNestIteratorImpl
すべての実装インタフェース:
SymNestIterator

public class SymNestIteratorImpl
extends java.lang.Object
implements SymNestIterator

SymNestIteratorImpl class


フィールドの概要
protected  int fStackDepth
           
protected  Sym fSymNext
           
protected  java.util.ArrayList fSymTableStack
           
 
コンストラクタの概要
SymNestIteratorImpl(SymTable pSymTable)
           
 
メソッドの概要
 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.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

fStackDepth

protected int fStackDepth

fSymTableStack

protected java.util.ArrayList fSymTableStack

fSymNext

protected Sym fSymNext
コンストラクタの詳細

SymNestIteratorImpl

public SymNestIteratorImpl(SymTable pSymTable)
メソッドの詳細

next

public Sym next()
インタフェース SymNestIterator の記述:
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.

定義:
インタフェース SymNestIterator 内の next

nextVar

public Var nextVar()
インタフェース SymNestIterator の記述:
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.

定義:
インタフェース SymNestIterator 内の nextVar

hasNext

public boolean hasNext()
インタフェース SymNestIterator の記述:
hasNext True if there are symbols remaining in the specified symbol table or its children, false otherwise.

定義:
インタフェース SymNestIterator 内の hasNext