Package com.ibm.wala.util.graph.impl
Class NodeWithNumberedEdges
- java.lang.Object
-
- com.ibm.wala.util.graph.impl.NodeWithNumber
-
- com.ibm.wala.util.graph.impl.NodeWithNumberedEdges
-
- All Implemented Interfaces:
INodeWithNumber
,INodeWithNumberedEdges
public class NodeWithNumberedEdges extends NodeWithNumber implements INodeWithNumberedEdges
Simple implementation ofINodeWithNumberedEdges
-
-
Constructor Summary
Constructors Constructor Description NodeWithNumberedEdges()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPred(int eqNumber)
Note that this variable appears on the LHS of an equation.void
addSucc(int eqNumber)
Note that this variable appears on the RHS of an equation.void
deletePred(int eqNumber)
remove the edge that indicates this variable is Predined by a certain equationvoid
deleteSucc(int eqNumber)
remove the edge that indicates this variable is Succd by a certain equationIntSet
getPredNumbers()
IntSet
getSuccNumbers()
void
removeAllIncidentEdges()
remove all edges that involve this node.void
removeIncomingEdges()
remove all incoming edges to this this node.void
removeOutgoingEdges()
remove all outgoing edges to this this node.-
Methods inherited from class com.ibm.wala.util.graph.impl.NodeWithNumber
getGraphNodeId, setGraphNodeId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.wala.util.graph.INodeWithNumber
getGraphNodeId, setGraphNodeId
-
-
-
-
Method Detail
-
getSuccNumbers
public IntSet getSuccNumbers()
- Specified by:
getSuccNumbers
in interfaceINodeWithNumberedEdges
- Returns:
- set of node numbers which are successors of this node
-
getPredNumbers
public IntSet getPredNumbers()
- Specified by:
getPredNumbers
in interfaceINodeWithNumberedEdges
- Returns:
- set of node numbers which are predecessors of this node
-
addSucc
public void addSucc(int eqNumber)
Note that this variable appears on the RHS of an equation.- Specified by:
addSucc
in interfaceINodeWithNumberedEdges
- Parameters:
eqNumber
- the equation number
-
addPred
public void addPred(int eqNumber)
Note that this variable appears on the LHS of an equation.- Specified by:
addPred
in interfaceINodeWithNumberedEdges
- Parameters:
eqNumber
- the equation number
-
deleteSucc
public void deleteSucc(int eqNumber)
remove the edge that indicates this variable is Succd by a certain equation- Parameters:
eqNumber
-
-
deletePred
public void deletePred(int eqNumber)
remove the edge that indicates this variable is Predined by a certain equation- Parameters:
eqNumber
-
-
removeAllIncidentEdges
public void removeAllIncidentEdges() throws UnimplementedError
Description copied from interface:INodeWithNumberedEdges
remove all edges that involve this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeAllIncidentEdges
in interfaceINodeWithNumberedEdges
- Throws:
UnimplementedError
-
removeIncomingEdges
public void removeIncomingEdges() throws UnimplementedError
Description copied from interface:INodeWithNumberedEdges
remove all incoming edges to this this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeIncomingEdges
in interfaceINodeWithNumberedEdges
- Throws:
UnimplementedError
-
removeOutgoingEdges
public void removeOutgoingEdges() throws UnimplementedError
Description copied from interface:INodeWithNumberedEdges
remove all outgoing edges to this this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeOutgoingEdges
in interfaceINodeWithNumberedEdges
- Throws:
UnimplementedError
-
-