coins.ast
Class Pair

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.Pair
All Implemented Interfaces:
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.

See Also:
Serialized Form

Field Summary
protected  ASTree left
           
protected  ASTree right
           
 
Constructor Summary
Pair(ASTree _left, ASTree _right)
           
 
Method Summary
 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)
           
 
Methods inherited from class coins.ast.ASTree
putSeparator, rightToString, toString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

left

protected ASTree left

right

protected ASTree right
Constructor Detail

Pair

public Pair(ASTree _left,
            ASTree _right)
Method Detail

accept

public void accept(Visitor v)
Description copied from class: 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.

Specified by:
accept in class ASTree

getTag

protected java.lang.String getTag()
Description copied from class: ASTree
Returns the type of this node. This method is used by toString().

Overrides:
getTag in class ASTree

getLeft

public ASTree getLeft()
Specified by:
getLeft in class ASTree

getRight

public ASTree getRight()
Specified by:
getRight in class ASTree

setLeft

public void setLeft(ASTree _left)
Specified by:
setLeft in class ASTree

setRight

public void setRight(ASTree _right)
Specified by:
setRight in class ASTree