tip.node
Class PBinop

java.lang.Object
  extended by tip.node.Node
      extended by tip.node.PBinop
All Implemented Interfaces:
Cloneable, NodeInterface
Direct Known Subclasses:
ADivideBinop, AEqBinop, AGtBinop, AMinusBinop, APlusBinop, ATimesBinop

public abstract class PBinop
extends Node

PBinop is the super class of all binop classes.


Constructor Summary
PBinop()
           
 
Method Summary
abstract  PBinop clone()
          Returns a deep clone of this PBinop node.
abstract  PBinop clone(Map<Node,Node> oldToNewMap)
          Creates a deep clone of this PBinop node while putting all old node-new node relations in the map oldToNewMap.
abstract  Token getToken()
          Returns the Token node which is the token child of this PBinop node.
 NodeEnum kindNode()
          Returns the NodeEnum corresponding to the type of this Node node.
abstract  EBinop kindPBinop()
          Returns the EBinop corresponding to the type of this PBinop node.
 
Methods inherited from class tip.node.Node
apply, apply, apply, apply, checkOptionalInvariant, getAncestor, getAncestor, getAncestor, getChildren, getChildren, getChildren, getDescendants, getDescendants, getDescendants, getDescendants, isOptionalInvariant, parent, replaceBy, setOptionalInvariant
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBinop

public PBinop()
Method Detail

clone

public abstract PBinop clone()
Returns a deep clone of this PBinop node.

Specified by:
clone in interface NodeInterface
Specified by:
clone in class Node
Returns:
a deep clone of this PBinop node

clone

public abstract PBinop clone(Map<Node,Node> oldToNewMap)
Creates a deep clone of this PBinop node while putting all old node-new node relations in the map oldToNewMap.

Specified by:
clone in interface NodeInterface
Specified by:
clone in class Node
Parameters:
oldToNewMap - the map filled with the old node-new node relation
Returns:
a deep clone of this PBinop node

getToken

public abstract Token getToken()
Returns the Token node which is the token child of this PBinop node.

Returns:
the Token node which is the token child of this PBinop node

kindPBinop

public abstract EBinop kindPBinop()
Returns the EBinop corresponding to the type of this PBinop node.

Returns:
the EBinop for this node

kindNode

public NodeEnum kindNode()
Returns the NodeEnum corresponding to the type of this Node node.

Specified by:
kindNode in class Node
Returns:
the NodeEnum for this node