Package com.ibm.wala.ipa.callgraph.impl
Class ExplicitCallGraph.ExplicitEdgeManager
- java.lang.Object
-
- com.ibm.wala.ipa.callgraph.impl.ExplicitCallGraph.ExplicitEdgeManager
-
- All Implemented Interfaces:
EdgeManager<CGNode>
,NumberedEdgeManager<CGNode>
- Enclosing class:
- ExplicitCallGraph
protected class ExplicitCallGraph.ExplicitEdgeManager extends Object implements NumberedEdgeManager<CGNode>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExplicitEdgeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEdge(int x, int y)
void
addEdge(CGNode src, CGNode dst)
int
getPredNodeCount(CGNode N)
Return the number ofimmediate predecessor
nodes of nIntSet
getPredNodeNumbers(CGNode node)
Iterator<CGNode>
getPredNodes(CGNode N)
Return anIterator
over the immediate predecessor nodes of n This method never returnsnull
.int
getSuccNodeCount(CGNode N)
Return the number ofimmediate successor
nodes of this Node in the GraphIntSet
getSuccNodeNumbers(CGNode node)
Iterator<CGNode>
getSuccNodes(CGNode N)
Return an Iterator over the immediate successor nodes of nboolean
hasEdge(CGNode src, CGNode dst)
void
removeAllIncidentEdges(CGNode node)
void
removeEdge(CGNode src, CGNode dst)
void
removeIncomingEdges(CGNode node)
void
removeOutgoingEdges(CGNode node)
-
-
-
Method Detail
-
getSuccNodeNumbers
public IntSet getSuccNodeNumbers(CGNode node)
- Specified by:
getSuccNodeNumbers
in interfaceNumberedEdgeManager<CGNode>
- Returns:
- the numbers identifying the immediate successors of node
-
getPredNodeNumbers
public IntSet getPredNodeNumbers(CGNode node)
- Specified by:
getPredNodeNumbers
in interfaceNumberedEdgeManager<CGNode>
- Returns:
- the numbers identifying the immediate predecessors of node
-
getPredNodes
public Iterator<CGNode> getPredNodes(CGNode N)
Description copied from interface:EdgeManager
Return anIterator
over the immediate predecessor nodes of n This method never returnsnull
.- Specified by:
getPredNodes
in interfaceEdgeManager<CGNode>
- Returns:
- an
Iterator
over the immediate predecessor nodes of this Node.
-
getPredNodeCount
public int getPredNodeCount(CGNode N)
Description copied from interface:EdgeManager
Return the number ofimmediate predecessor
nodes of n- Specified by:
getPredNodeCount
in interfaceEdgeManager<CGNode>
- Returns:
- the number of immediate predecessors of n.
-
getSuccNodes
public Iterator<CGNode> getSuccNodes(CGNode N)
Description copied from interface:EdgeManager
Return an Iterator over the immediate successor nodes of nThis method never returns
null
.- Specified by:
getSuccNodes
in interfaceEdgeManager<CGNode>
- Returns:
- an Iterator over the immediate successor nodes of n
-
getSuccNodeCount
public int getSuccNodeCount(CGNode N)
Description copied from interface:EdgeManager
Return the number ofimmediate successor
nodes of this Node in the Graph- Specified by:
getSuccNodeCount
in interfaceEdgeManager<CGNode>
- Returns:
- the number of immediate successor Nodes of this Node in the Graph.
-
addEdge
public void addEdge(CGNode src, CGNode dst)
- Specified by:
addEdge
in interfaceEdgeManager<CGNode>
-
removeEdge
public void removeEdge(CGNode src, CGNode dst)
- Specified by:
removeEdge
in interfaceEdgeManager<CGNode>
-
addEdge
protected void addEdge(int x, int y)
-
removeAllIncidentEdges
public void removeAllIncidentEdges(CGNode node)
- Specified by:
removeAllIncidentEdges
in interfaceEdgeManager<CGNode>
-
removeIncomingEdges
public void removeIncomingEdges(CGNode node)
- Specified by:
removeIncomingEdges
in interfaceEdgeManager<CGNode>
-
removeOutgoingEdges
public void removeOutgoingEdges(CGNode node)
- Specified by:
removeOutgoingEdges
in interfaceEdgeManager<CGNode>
-
hasEdge
public boolean hasEdge(CGNode src, CGNode dst)
- Specified by:
hasEdge
in interfaceEdgeManager<CGNode>
-
-