public interface CallGraph extends NumberedGraph<CGNode>
CGNode
Modifier and Type | Method and Description |
---|---|
IClassHierarchy |
getClassHierarchy() |
Collection<CGNode> |
getEntrypointNodes() |
CGNode |
getFakeRootNode()
Return the (fake) interprocedural
root node of the call graph. |
CGNode |
getFakeWorldClinitNode() |
CGNode |
getNode(IMethod method,
Context C)
If you want to get all the nodes corresponding to a particular method, regardless of context, then use
getNodes |
Set<CGNode> |
getNodes(MethodReference m) |
int |
getNumberOfTargets(CGNode node,
CallSiteReference site) |
Iterator<CallSiteReference> |
getPossibleSites(CGNode src,
CGNode target) |
Set<CGNode> |
getPossibleTargets(CGNode node,
CallSiteReference site)
Return the set of CGNodes that represent possible targets of a particular call site from a particular node
|
removeNodeAndEdges
getMaxNumber, getNode, getNumber, iterateNodes
addNode, containsNode, getNumberOfNodes, iterator, removeNode
forEach, spliterator
getPredNodeNumbers, getSuccNodeNumbers
addEdge, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeOutgoingEdges
CGNode getFakeRootNode()
root node
of the call graph.CGNode getFakeWorldClinitNode()
Collection<CGNode> getEntrypointNodes()
CGNode getNode(IMethod method, Context C)
getNodes
Set<CGNode> getNodes(MethodReference m)
m
- a method referenceIClassHierarchy getClassHierarchy()
Set<CGNode> getPossibleTargets(CGNode node, CallSiteReference site)
int getNumberOfTargets(CGNode node, CallSiteReference site)
Iterator<CallSiteReference> getPossibleSites(CGNode src, CGNode target)