com.ibm.wala.util.graph.impl
Class NodeWithNumber

java.lang.Object
  extended by com.ibm.wala.util.graph.impl.NodeWithNumber
All Implemented Interfaces:
INodeWithNumber
Direct Known Subclasses:
AbstractStatement, AbstractVariable, BasicBlockInContext, BasicCallGraph.NodeImpl, InducedCFG.BasicBlock, NodeWithNumberedEdges, ShrikeCFG.BasicBlock

public class NodeWithNumber
extends java.lang.Object
implements INodeWithNumber

A node which carries it's own number; which identifies it in a NumberedGraph implementation.


Constructor Summary
NodeWithNumber()
           
 
Method Summary
 int getGraphNodeId()
          A non-negative integer which serves as an identifier for this node in it's "dominant" graph.
 void setGraphNodeId(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeWithNumber

public NodeWithNumber()
Method Detail

getGraphNodeId

public int getGraphNodeId()
Description copied from interface: INodeWithNumber
A non-negative integer which serves as an identifier for this node in it's "dominant" graph. Initially this number is -1; a NumberedGraph will set it to a non-negative value when this node is inserted into the graph

Specified by:
getGraphNodeId in interface INodeWithNumber
Returns:
the number which identifies this node in the numbered graph

setGraphNodeId

public void setGraphNodeId(int i)
Specified by:
setGraphNodeId in interface INodeWithNumber
Parameters:
i -