public class PrunedCallGraph extends Object implements CallGraph
| Constructor and Description |
|---|
PrunedCallGraph(CallGraph cg,
Set<CGNode> keep) |
public void removeNodeAndEdges(CGNode n) throws UnsupportedOperationException
removeNodeAndEdges in interface com.ibm.wala.util.graph.Graph<CGNode>UnsupportedOperationExceptionpublic int getNumberOfNodes()
getNumberOfNodes in interface com.ibm.wala.util.graph.NodeManager<CGNode>public void addNode(CGNode n)
addNode in interface com.ibm.wala.util.graph.NodeManager<CGNode>public void removeNode(CGNode n) throws UnsupportedOperationException
removeNode in interface com.ibm.wala.util.graph.NodeManager<CGNode>UnsupportedOperationExceptionpublic boolean containsNode(CGNode n)
containsNode in interface com.ibm.wala.util.graph.NodeManager<CGNode>public Iterator<CGNode> getPredNodes(CGNode n)
getPredNodes in interface com.ibm.wala.util.graph.EdgeManager<CGNode>public int getPredNodeCount(CGNode n)
getPredNodeCount in interface com.ibm.wala.util.graph.EdgeManager<CGNode>public Iterator<CGNode> getSuccNodes(CGNode n)
getSuccNodes in interface com.ibm.wala.util.graph.EdgeManager<CGNode>public int getSuccNodeCount(CGNode n)
getSuccNodeCount in interface com.ibm.wala.util.graph.EdgeManager<CGNode>public void addEdge(CGNode src, CGNode dst)
addEdge in interface com.ibm.wala.util.graph.EdgeManager<CGNode>public void removeEdge(CGNode src, CGNode dst) throws UnsupportedOperationException
removeEdge in interface com.ibm.wala.util.graph.EdgeManager<CGNode>UnsupportedOperationExceptionpublic void removeAllIncidentEdges(CGNode node) throws UnsupportedOperationException
removeAllIncidentEdges in interface com.ibm.wala.util.graph.EdgeManager<CGNode>UnsupportedOperationExceptionpublic void removeIncomingEdges(CGNode node) throws UnsupportedOperationException
removeIncomingEdges in interface com.ibm.wala.util.graph.EdgeManager<CGNode>UnsupportedOperationExceptionpublic void removeOutgoingEdges(CGNode node) throws UnsupportedOperationException
removeOutgoingEdges in interface com.ibm.wala.util.graph.EdgeManager<CGNode>UnsupportedOperationExceptionpublic boolean hasEdge(CGNode src, CGNode dst)
hasEdge in interface com.ibm.wala.util.graph.EdgeManager<CGNode>public int getNumber(CGNode N)
getNumber in interface com.ibm.wala.util.graph.NumberedNodeManager<CGNode>public CGNode getNode(int number)
getNode in interface com.ibm.wala.util.graph.NumberedNodeManager<CGNode>public int getMaxNumber()
getMaxNumber in interface com.ibm.wala.util.graph.NumberedNodeManager<CGNode>public Iterator<CGNode> iterateNodes(com.ibm.wala.util.intset.IntSet s)
iterateNodes in interface com.ibm.wala.util.graph.NumberedNodeManager<CGNode>public com.ibm.wala.util.intset.IntSet getSuccNodeNumbers(CGNode node)
getSuccNodeNumbers in interface com.ibm.wala.util.graph.NumberedEdgeManager<CGNode>public com.ibm.wala.util.intset.IntSet getPredNodeNumbers(CGNode node)
getPredNodeNumbers in interface com.ibm.wala.util.graph.NumberedEdgeManager<CGNode>public CGNode getFakeRootNode()
CallGraphroot node of the call graph.getFakeRootNode in interface CallGraphpublic CGNode getFakeWorldClinitNode()
getFakeWorldClinitNode in interface CallGraphpublic Collection<CGNode> getEntrypointNodes()
getEntrypointNodes in interface CallGraphpublic CGNode getNode(IMethod method, Context C)
CallGraphgetNodespublic Set<CGNode> getNodes(MethodReference m)
public IClassHierarchy getClassHierarchy()
getClassHierarchy in interface CallGraphpublic Set<CGNode> getPossibleTargets(CGNode node, CallSiteReference site)
CallGraphgetPossibleTargets in interface CallGraphpublic int getNumberOfTargets(CGNode node, CallSiteReference site)
getNumberOfTargets in interface CallGraphpublic Iterator<CallSiteReference> getPossibleSites(CGNode src, CGNode target)
getPossibleSites in interface CallGraphCopyright © 2015. All rights reserved.