| org.netbeans.insane.scanner.Visitor
All known Subclasses: org.netbeans.insane.scanner.SimpleXmlVisitor, org.netbeans.insane.impl.LiveEngine, org.netbeans.insane.scanner.CountingVisitor,
Visitor | public interface Visitor (Code) | | A visitor interface that is called by the engine during the heap scan.
author: Nenik |
Method Summary | |
public void | visitArrayReference(ObjectMap map, Object from, Object to, int index) A new reference to target object was found. | public void | visitClass(Class cls) A new type was found. | public void | visitObject(ObjectMap map, Object object) A new object instance was found. | public void | visitObjectReference(ObjectMap map, Object from, Object to, Field ref) A reference from object 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.
Parameters: map - The ObjectMap containing the objects. Parameters: from - The object from which the reference sources. Parameters: to - The object to which the reference points. Parameters: ref - The representation of the reference. | public void | visitStaticReference(ObjectMap map, Object to, Field ref) A new reference static reference to target object was found.
It is guaranteed that the to object will be reported before
the reference.
Parameters: map - The ObjectMap containing the object. Parameters: to - The object to which the reference points. Parameters: ref - The representation of the reference. |
visitArrayReference | public void visitArrayReference(ObjectMap map, Object from, Object to, int index)(Code) | | A new reference to target object was found. The object 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.
Parameters: map - The ObjectMap containing the objects. Parameters: from - The object from which the reference sources. Parameters: to - The object to which the reference points. Parameters: index - The array index of the to reference infrom array. |
visitClass | public void visitClass(Class cls)(Code) | | A new type was found.
It is guaranteed to be reported before first instance of given class.
It is also guaranteed that all superclasses and interfaces will be
reported before a subclass.
Parameters: cls - the new type found. |
visitObject | public void visitObject(ObjectMap map, Object object)(Code) | | A new object instance was found.
It is guaranteed to be reported before first reference sourced from
or targetted to this instance.
It is also guaranteed that the instance's class will be reported
before the instance.
Parameters: map - The ObjectMap containing this object. Parameters: object - the reported instance. |
visitObjectReference | public void visitObjectReference(ObjectMap map, Object from, Object to, Field ref)(Code) | | A reference from object 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.
Parameters: map - The ObjectMap containing the objects. Parameters: from - The object from which the reference sources. Parameters: to - The object to which the reference points. Parameters: ref - The representation of the reference. Describes the classthe referring field is declared in, and how it is named. |
visitStaticReference | public void visitStaticReference(ObjectMap map, Object to, Field ref)(Code) | | A new reference static reference to target object was found.
It is guaranteed that the to object will be reported before
the reference.
Parameters: map - The ObjectMap containing the object. Parameters: to - The object to which the reference points. Parameters: ref - The representation of the reference. Describes the classthe referring field is declared in, and how it is named. |
|
|