com.ibm.dtfj.analyzer.util
Class ClassDirectory

java.lang.Object
  extended by com.ibm.dtfj.analyzer.util.ClassDirectory

public class ClassDirectory
extends java.lang.Object

A directory which will return scanner objects for a desired JavaClass. Objects are cached in the directory to speed access.


Constructor Summary
ClassDirectory()
           
 
Method Summary
 ClassScanner expandClass(com.ibm.dtfj.java.JavaClass cls)
          Given a class we return an object that can be used to scan the fields of an instance of that class.
 void visitReferences(com.ibm.dtfj.java.JavaObject obj, ObjectObserver obs, java.lang.Object context)
          Visit all the references from the given object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDirectory

public ClassDirectory()
Method Detail

expandClass

public ClassScanner expandClass(com.ibm.dtfj.java.JavaClass cls)
Given a class we return an object that can be used to scan the fields of an instance of that class. The aim is to cache information on the fields of the class itself and any superclasses in order to speed the process of analyzing individual objects.

Parameters:
cls - the class to find a scanner for
Returns:
the scanner for the class

visitReferences

public void visitReferences(com.ibm.dtfj.java.JavaObject obj,
                            ObjectObserver obs,
                            java.lang.Object context)
                     throws com.ibm.dtfj.image.CorruptDataException
Visit all the references from the given object

Parameters:
obj - the object to scan for references
obs - the observer to pass the references to
context - a context which will be passed to the object processing routine
Throws:
com.ibm.dtfj.image.CorruptDataException


© Copyright IBM Corp. 2007, 2008 All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.