sandmark.watermark.ct.recognize
Class Heap2Graph
java.lang.Object
|
+--sandmark.watermark.ct.recognize.Heap2Graph
- public class Heap2Graph
- extends java.lang.Object
Walks the object graph starting at a particular root node
and builds the corresponding sandmark.util.graph.Graph.
Field Summary |
(package private) Graph |
graph
|
(package private) java.util.Hashtable |
nodeMap
|
(package private) int |
nodeNumber
|
(package private) com.sun.jdi.ObjectReference |
root
|
(package private) com.sun.jdi.VirtualMachine |
vm
|
Constructor Summary |
Heap2Graph(com.sun.jdi.VirtualMachine vm,
com.sun.jdi.ObjectReference root)
Walks the object graph starting at a particular root node
and builds the corresponding sandmark.util.graph.Graph.
|
Method Summary |
Graph |
unpack()
Walks the object graph starting at the root node.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
com.sun.jdi.ObjectReference root
vm
com.sun.jdi.VirtualMachine vm
graph
Graph graph
nodeNumber
int nodeNumber
nodeMap
java.util.Hashtable nodeMap
Heap2Graph
public Heap2Graph(com.sun.jdi.VirtualMachine vm,
com.sun.jdi.ObjectReference root)
- Walks the object graph starting at a particular root node
and builds the corresponding sandmark.util.graph.Graph.
- Parameters:
vm
- The virtual machine that's running the program.root
- The root object of the object-graph.
unpack
public Graph unpack()
- Walks the object graph starting at the root node.
Construct and return the corresponding sandmark.util.graph.Graph.