tgl.stree
クラス UniExprTree

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

public class UniExprTree
extends java.lang.Object
implements ExprTree

単項演算子をもつ式の構文木のクラス。


コンストラクタの概要
UniExprTree(Operator operator, ExprTree operand)
          単項演算子をもつ式の構文木のインスタンスを作成する。
 
メソッドの概要
 void accept(STreeVisitor v)
          ビジタクラスに定義されたメソッド caseUniExprTree を呼び出す。
 ExprTree getOperand()
          単項演算子の引数である式の構文木を取得する。
 Operator getOperator()
          単項演算子を取得する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

UniExprTree

public UniExprTree(Operator operator,
                   ExprTree operand)
単項演算子をもつ式の構文木のインスタンスを作成する。

パラメータ:
operator - 単項演算子
operand - 単項演算子の引数
メソッドの詳細

getOperator

public Operator getOperator()
単項演算子を取得する。

戻り値:
単項演算子

getOperand

public ExprTree getOperand()
単項演算子の引数である式の構文木を取得する。

戻り値:
式の構文木

accept

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

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