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 voidaddPred(int eqNumber)Note that this variable appears on the LHS of an equation.voidaddSucc(int eqNumber)Note that this variable appears on the RHS of an equation.voiddeletePred(int eqNumber)remove the edge that indicates this variable is Predined by a certain equationvoiddeleteSucc(int eqNumber)remove the edge that indicates this variable is Succd by a certain equation@Nullable IntSetgetPredNumbers()@Nullable IntSetgetSuccNumbers()voidremoveAllIncidentEdges()remove all edges that involve this node.voidremoveIncomingEdges()remove all incoming edges to this this node.voidremoveOutgoingEdges()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 @Nullable IntSet getSuccNumbers()
- Specified by:
getSuccNumbersin interfaceINodeWithNumberedEdges- Returns:
- set of node numbers which are successors of this node
-
getPredNumbers
public @Nullable IntSet getPredNumbers()
- Specified by:
getPredNumbersin 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:
addSuccin 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:
addPredin 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
-
deletePred
public void deletePred(int eqNumber)
remove the edge that indicates this variable is Predined by a certain equation
-
removeAllIncidentEdges
public void removeAllIncidentEdges() throws UnimplementedErrorDescription copied from interface:INodeWithNumberedEdgesremove all edges that involve this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeAllIncidentEdgesin interfaceINodeWithNumberedEdges- Throws:
UnimplementedError
-
removeIncomingEdges
public void removeIncomingEdges() throws UnimplementedErrorDescription copied from interface:INodeWithNumberedEdgesremove all incoming edges to this this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeIncomingEdgesin interfaceINodeWithNumberedEdges- Throws:
UnimplementedError
-
removeOutgoingEdges
public void removeOutgoingEdges() throws UnimplementedErrorDescription copied from interface:INodeWithNumberedEdgesremove all outgoing edges to this this node. This must fix up the other nodes involved in each edge removed.- Specified by:
removeOutgoingEdgesin interfaceINodeWithNumberedEdges- Throws:
UnimplementedError
-
-