public abstract class HeapGraphImpl<T extends InstanceKey> extends Object implements HeapGraph<T>
Graph view of a pointer analysis solution.
Nodes in the Graph are PointerKeys and InstanceKeys.
There is an edge from a PointerKey P to an InstanceKey I iff the PointerAnalysis indicates that P may point to I.
There is an edge from an InstanceKey I to a PointerKey P iff - P represents a field of an object instance modeled by I, or - P
represents the array contents of array instance I.| Modifier | Constructor and Description |
|---|---|
protected |
HeapGraphImpl(PointerAnalysis<T> pa) |
| Modifier and Type | Method and Description |
|---|---|
HeapModel |
getHeapModel() |
PointerAnalysis<T> |
getPointerAnalysis() |
Collection<Object> |
getReachableInstances(Set<Object> roots) |
Iterator<Object> |
iterateNodes(com.ibm.wala.util.intset.IntSet s) |
void |
removeNodeAndEdges(Object N) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxNumber, getNode, getNumberaddNode, containsNode, getNumberOfNodes, iterator, removeNodeprotected HeapGraphImpl(PointerAnalysis<T> pa)
public Iterator<Object> iterateNodes(com.ibm.wala.util.intset.IntSet s)
iterateNodes in interface com.ibm.wala.util.graph.NumberedNodeManager<Object>public Collection<Object> getReachableInstances(Set<Object> roots)
getReachableInstances in interface HeapGraph<T extends InstanceKey>public void removeNodeAndEdges(Object N) throws UnsupportedOperationException
removeNodeAndEdges in interface com.ibm.wala.util.graph.Graph<Object>UnsupportedOperationExceptionpublic HeapModel getHeapModel()
getHeapModel in interface HeapGraph<T extends InstanceKey>public PointerAnalysis<T> getPointerAnalysis()
getPointerAnalysis in interface HeapGraph<T extends InstanceKey>Copyright © 2015. All rights reserved.