tgl.stree
クラス CondTree

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

public class CondTree
extends java.lang.Object
implements STree

条件の構文木のクラス。


コンストラクタの概要
CondTree(Operator operator, ExprTree operand1, ExprTree operand2)
          条件の構文木のインスタンスを作成する。
 
メソッドの概要
 void accept(STreeVisitor v)
          ビジタクラスに定義されたメソッド caseCondTree を呼び出す。
 ExprTree getFirstOperand()
          関係演算子の左辺の式の構文木を取得する。
 Operator getOperator()
          関係演算子を取得する。
 ExprTree getSecondOperand()
          関係演算子の右辺の式の構文木を取得する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CondTree

public CondTree(Operator operator,
                ExprTree operand1,
                ExprTree operand2)
条件の構文木のインスタンスを作成する。

パラメータ:
operator - 関係演算子
operand1 - 関係演算子の左辺の引数
operand2 - 関係演算子の右辺の引数
メソッドの詳細

getOperator

public Operator getOperator()
関係演算子を取得する。

戻り値:
関係演算子

getFirstOperand

public ExprTree getFirstOperand()
関係演算子の左辺の式の構文木を取得する。

戻り値:
式の構文木

getSecondOperand

public ExprTree getSecondOperand()
関係演算子の右辺の式の構文木を取得する。

戻り値:
式の構文木

accept

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

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