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.

関連項目:
直列化された形式

フィールドの概要
protected  ASTree left
           
protected  ASTree right
           
 
コンストラクタの概要
Pair(ASTree _left, ASTree _right)
           
 
メソッドの概要
 void accept(Visitor v)
          Is a method for the visitor pattern.
 ASTree getLeft()
           
 ASTree getRight()
           
protected  java.lang.String getTag()
          Returns the type of this node.
 void setLeft(ASTree _left)
           
 void setRight(ASTree _right)
           
 
クラス coins.ast.ASTree から継承したメソッド
putSeparator, rightToString, toString, toString1
 
クラス 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