|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Visitor
A visitor interface that is called by the engine during the heap scan.
Method Summary | |
---|---|
void |
visitArrayReference(ObjectMap map,
java.lang.Object from,
java.lang.Object to,
int index)
A new reference to target object was found. |
void |
visitClass(java.lang.Class cls)
A new type was found. |
void |
visitObject(ObjectMap map,
java.lang.Object object)
A new object instance was found. |
void |
visitObjectReference(ObjectMap map,
java.lang.Object from,
java.lang.Object to,
java.lang.reflect.Field ref)
A reference from object from to object to
was found as the contents of the field ref . |
void |
visitStaticReference(ObjectMap map,
java.lang.Object to,
java.lang.reflect.Field ref)
A new reference static reference to target object was found. |
Method Detail |
---|
void visitClass(java.lang.Class cls)
cls
- the new type found.void visitObject(ObjectMap map, java.lang.Object object)
map
- The ObjectMap
containing this object.object
- the reported instance.void visitObjectReference(ObjectMap map, java.lang.Object from, java.lang.Object to, java.lang.reflect.Field ref)
from
to object to
was found as the contents of the field ref
.
It is guaranteed that both from
and to
objects
will be reported before the reference.
map
- The ObjectMap
containing the objects.from
- The object from which the reference sources.to
- The object to which the reference points.ref
- The representation of the reference. Describes the class
the referring field is declared in, and how it is named.void visitArrayReference(ObjectMap map, java.lang.Object from, java.lang.Object to, int index)
to
is referenced by index
-th slot of the array from
It is guaranteed that both from
and to
objects
will be reported before the reference.
map
- The ObjectMap
containing the objects.from
- The object from which the reference sources.to
- The object to which the reference points.index
- The array index of the to reference in
from
array.
void visitStaticReference(ObjectMap map, java.lang.Object to, java.lang.reflect.Field ref)
to
object will be reported before
the reference.
map
- The ObjectMap
containing the object.to
- The object to which the reference points.ref
- The representation of the reference. Describes the class
the referring field is declared in, and how it is named.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |