coins.ast
クラス Pair
java.lang.Object
|
+--coins.ast.ASTree
|
+--coins.ast.Pair
- すべての実装インタフェース:
- java.io.Serializable
- public class Pair
- extends ASTree
A node of a a binary tree. This class provides concrete methods
overriding abstract methods in ASTree.
- 関連項目:
- 直列化された形式
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
left
protected ASTree left
right
protected ASTree right
Pair
public Pair(ASTree _left,
ASTree _right)
accept
public void accept(Visitor v)
- クラス
ASTree
の記述:
- Is a method for the visitor pattern. It calls
atXXX()
on the given visitor, where
XXX
is the class name of the node object.
- 定義:
- クラス
ASTree
内の accept
getTag
protected java.lang.String getTag()
- クラス
ASTree
の記述:
- Returns the type of this node. This method is used by
toString()
.
- オーバーライド:
- クラス
ASTree
内の getTag
getLeft
public ASTree getLeft()
- 定義:
- クラス
ASTree
内の getLeft
getRight
public ASTree getRight()
- 定義:
- クラス
ASTree
内の getRight
setLeft
public void setLeft(ASTree _left)
- 定義:
- クラス
ASTree
内の setLeft
setRight
public void setRight(ASTree _right)
- 定義:
- クラス
ASTree
内の setRight