tip.node
Class PStm

java.lang.Object
  extended by tip.node.Node
      extended by tip.node.PStm
All Implemented Interfaces:
Cloneable, NodeInterface
Direct Known Subclasses:
ABlockStm, ADeclStm, AIfThenElseStm, AIfThenStm, AOutputStm, AReturnStm, AWhileStm, AAssignPtrStm, AAssignVarStm

public abstract class PStm
extends Node

PStm is the super class of all stm classes.


Constructor Summary
PStm()
           
 
Method Summary
abstract  PStm clone()
          Returns a deep clone of this PStm node.
abstract  PStm clone(Map<Node,Node> oldToNewMap)
          Creates a deep clone of this PStm 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 PStm node.
 NodeEnum kindNode()
          Returns the NodeEnum corresponding to the type of this Node node.
abstract  EStm kindPStm()
          Returns the EStm corresponding to the type of this PStm 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

PStm

public PStm()
Method Detail

clone

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

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

clone

public abstract PStm clone(Map<Node,Node> oldToNewMap)
Creates a deep clone of this PStm 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 PStm node

getToken

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

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

kindPStm

public abstract EStm kindPStm()
Returns the EStm corresponding to the type of this PStm node.

Returns:
the EStm 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