|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wisc.cs.stego.heap.HVertex
This is the superclass of all types which represent various objects in a reconstructed heap. Each object read from a profile will be represented by exactly one instance of a subclass of HVertex. Thus, it may be assumed that comparing references is sufficient for determining equality of two objects.
Field Summary | |
protected long |
address
The numerical address of this object in the heap. |
protected java.util.Vector |
in_pointers
A vector containing references to object which have the current one as a member. |
protected java.lang.String |
key
A string containing the address in hexidecimal notation. |
protected boolean |
resolved
True if this object's members have been resolved, false otherwise. |
protected java.lang.String |
type
The name of the type of this object. |
Constructor Summary | |
protected |
HVertex()
Constructor used by subclasses. |
Method Summary | |
void |
addInPointer(HVertex vert)
Adds an in-pointer from a specified vertex. |
abstract void |
addMember(java.lang.String line)
Adds a new member to this object. |
protected void |
finalize()
Removes the in-pointer from all objects which referenced by this one. |
long |
getAddress()
Returns the address of this object; |
HVertex |
getInPointer(int i)
Returns an object which contains a reference to this one. |
java.lang.String |
getKey()
Returns the key for this object as it is used in the maps before resolution. |
abstract java.util.Iterator |
getMembers()
Returns the set of vertices which are succesors of this one. |
int |
getNInPointers()
Returns the number of in pointers for this object. |
java.lang.String |
getType()
Returns the name of the type of this object. |
void |
removeInPointer(HVertex vert)
Removes an in pointer from this vertex. |
abstract void |
resolve(java.util.HashMap heap)
Given a map of all of the objects read in from the profile, resolve the members to references to HVertex objects. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected boolean resolved
protected java.lang.String type
protected long address
protected java.lang.String key
protected java.util.Vector in_pointers
addInPointer
method.addInPointer(edu.wisc.cs.stego.heap.HVertex)
Constructor Detail |
protected HVertex()
resolved
and in_pointers
members. The others are left to subclasses.Method Detail |
public abstract void addMember(java.lang.String line)
line
- an object member line from a heap profile.public abstract void resolve(java.util.HashMap heap)
resolved
flag to true
.heap
- a HashMap containing all of the objects from the heap profile.public abstract java.util.Iterator getMembers()
public void addInPointer(HVertex vert)
vert
- a vertex which contains a reference to this one.public void removeInPointer(HVertex vert)
vert
- a vertex which contains a reference to this one.public int getNInPointers()
public HVertex getInPointer(int i)
i
- the index of the in pointer resquested.public java.lang.String getKey()
public java.lang.String getType()
public long getAddress()
protected void finalize()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |