tip.node
Class PDecl

java.lang.Object
  extended by tip.node.Node
      extended by tip.node.PDecl
All Implemented Interfaces:
Cloneable, NodeInterface
Direct Known Subclasses:
AFuncDecl, ALocalDecl

public abstract class PDecl
extends Node

PDecl is the super class of all decl classes.


Constructor Summary
PDecl()
           
 
Method Summary
abstract  PDecl clone()
          Returns a deep clone of this PDecl node.
abstract  PDecl clone(Map<Node,Node> oldToNewMap)
          Creates a deep clone of this PDecl node while putting all old node-new node relations in the map oldToNewMap.
abstract  int getIndex()
          Returns the index field of this PDecl node.
abstract  TIdentifier getName()
          Returns the TIdentifier node which is the name child of this PDecl node.
 NodeEnum kindNode()
          Returns the NodeEnum corresponding to the type of this Node node.
abstract  EDecl kindPDecl()
          Returns the EDecl corresponding to the type of this PDecl node.
abstract  void setIndex(int value)
          Sets the index field of this PDecl node.
abstract  void setName(TIdentifier value)
          Sets the name child of this PDecl 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

PDecl

public PDecl()
Method Detail

clone

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

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

clone

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

getIndex

public abstract int getIndex()
Returns the index field of this PDecl node.

Returns:
the index field of this PDecl node

setIndex

public abstract void setIndex(int value)
Sets the index field of this PDecl node.

Parameters:
value - the new index field of this PDecl node

getName

public abstract TIdentifier getName()
Returns the TIdentifier node which is the name child of this PDecl node.

Returns:
the TIdentifier node which is the name child of this PDecl node

setName

public abstract void setName(TIdentifier value)
Sets the name child of this PDecl node.

Parameters:
value - the new name child of this PDecl node

kindPDecl

public abstract EDecl kindPDecl()
Returns the EDecl corresponding to the type of this PDecl node.

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