Class ExplicitPredecessorsEdgeManager
java.lang.Object
com.ibm.wala.ipa.callgraph.impl.ExplicitPredecessorsEdgeManager
- All Implemented Interfaces:
EdgeManager<CGNode>
,NumberedEdgeManager<CGNode>
- Direct Known Subclasses:
ExplicitCallGraph.ExplicitEdgeManager
public abstract class ExplicitPredecessorsEdgeManager
extends Object
implements NumberedEdgeManager<CGNode>
An abstract
NumberedEdgeManager
where predecessor edges are represented explicitly. The
representation of successor edges is determined by concrete subclasses.-
Field Summary
Modifier and TypeFieldDescriptionprotected final IBinaryNaturalRelation
for each y, the {x | (x,y) is an edge)protected final IntFunction
<CGNode> -
Constructor Summary
ModifierConstructorDescriptionprotected
ExplicitPredecessorsEdgeManager
(NumberedNodeManager<CGNode> nodeManager) -
Method Summary
Modifier and TypeMethodDescriptionint
getPredNodeCount
(CGNode node) Return the number ofimmediate predecessor
nodes of ngetPredNodeNumbers
(CGNode node) Return anIterator
over the immediate predecessor nodes of nMethods 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.EdgeManager
addEdge, getSuccNodeCount, getSuccNodes, hasEdge, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeOutgoingEdges
Methods inherited from interface com.ibm.wala.util.graph.NumberedEdgeManager
getSuccNodeNumbers
-
Field Details
-
toNode
-
predecessors
for each y, the {x | (x,y) is an edge)
-
-
Constructor Details
-
ExplicitPredecessorsEdgeManager
-
-
Method Details
-
getPredNodeNumbers
- Specified by:
getPredNodeNumbers
in interfaceNumberedEdgeManager<CGNode>
- Returns:
- the numbers identifying the immediate predecessors of node
-
getPredNodes
Description copied from interface:EdgeManager
Return anIterator
over the immediate predecessor nodes of nThis method never returns
null
.- Specified by:
getPredNodes
in interfaceEdgeManager<CGNode>
- Returns:
- an
Iterator
over the immediate predecessor nodes of this Node.
-
getPredNodeCount
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.
-