|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objecttgl.stree.BinExprTree
public class BinExprTree
二項演算子をもつ式の構文木のクラス。
コンストラクタの概要 | |
---|---|
BinExprTree(Operator operator,
ExprTree operand1,
ExprTree operand2)
二項演算子をもつ構文木のインスタンスを作成する。 |
メソッドの概要 | |
---|---|
void |
accept(STreeVisitor v)
ビジタクラスに定義されたメソッド caseBinExprTree を呼び出す。 |
ExprTree |
getFirstOperand()
二項演算子の左辺の引数の式の構文木を取得する。 |
Operator |
getOperator()
二項演算子を取得する。 |
ExprTree |
getSecondOperand()
二項演算子の右辺の引数の式の構文木を取得する。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public BinExprTree(Operator operator, ExprTree operand1, ExprTree operand2)
operator
- 二項演算子operand1
- 演算子の左辺の引数operand2
- 演算子の右辺の引数メソッドの詳細 |
---|
public Operator getOperator()
public ExprTree getFirstOperand()
public ExprTree getSecondOperand()
public void accept(STreeVisitor v)
STree
内の accept
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |