tgl.stree
クラス RepeatTree

java.lang.Object
  上位を拡張 tgl.stree.RepeatTree
すべての実装されたインタフェース:
STree

public class RepeatTree
extends java.lang.Object
implements STree

repeat文の構文木のクラス。


コンストラクタの概要
RepeatTree(ExprTree count, Code body)
          repeat文の構文木のインスタンスを作成する。
 
メソッドの概要
 void accept(STreeVisitor v)
          ビジタクラスに定義されたメソッド caseRepeatTree を呼び出す。
 Code getBody()
          repeat文の本体のコードを取得する
 ExprTree getCount()
          repeat文本体の実行回数を与える式の構文木を取得する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RepeatTree

public RepeatTree(ExprTree count,
                  Code body)
repeat文の構文木のインスタンスを作成する。

パラメータ:
count - repeat文本体の実行回数を与える式の構文木
body - repeat文の本体のコード
メソッドの詳細

getCount

public ExprTree getCount()
repeat文本体の実行回数を与える式の構文木を取得する。

戻り値:
式の構文木

getBody

public Code getBody()
repeat文の本体のコードを取得する

戻り値:
本体のコード(構文木の列)

accept

public void accept(STreeVisitor v)
ビジタクラスに定義されたメソッド caseRepeatTree を呼び出す。

定義:
インタフェース STree 内の accept