public interface IClass extends IObject
IObject.Type
Modifier and Type | Field and Description |
---|---|
static String |
JAVA_LANG_CLASS |
static String |
JAVA_LANG_CLASSLOADER |
Modifier and Type | Method and Description |
---|---|
boolean |
doesExtend(String className)
Does this class extend a class of the supplied name?
With multiple class loaders the supplied name might not
be the class you were intending to find.
|
List<IClass> |
getAllSubclasses()
Returns all sub-classes including sub-classes of its sub-classes.
|
long |
getClassLoaderAddress()
Returns the address of the class loader which loaded this class.
|
int |
getClassLoaderId()
Returns the id of the class loader which loaded this class.
|
List<FieldDescriptor> |
getFieldDescriptors()
Returns field descriptors for all member variables of instances of this
class.
|
long |
getHeapSizePerInstance()
Returns the heap size of one instance of this class.
|
String |
getName()
Returns the fully qualified class name of this class.
|
int |
getNumberOfObjects()
Returns the number of instances of this class present in the heap dump.
|
int[] |
getObjectIds()
Ids of all instances of this class (an empty array if there are no instances of the class)
|
long |
getRetainedHeapSizeOfObjects(boolean calculateIfNotAvailable,
boolean calculateMinRetainedSize,
IProgressListener listener)
Returns the retained size of all objects of this instance including the
class instance.
|
List<Field> |
getStaticFields()
Returns the static fields and it values.
|
List<IClass> |
getSubclasses()
Returns the direct sub-classes.
|
IClass |
getSuperClass()
Returns the super class.
|
int |
getSuperClassId()
Returns the id of the super class.
|
boolean |
hasSuperClass()
Returns true if the class has a super class.
|
boolean |
isArrayType()
Returns true if the class is an array class.
|
getClassSpecificName, getClazz, getDisplayName, getGCRootInfo, getObjectAddress, getObjectId, getOutboundReferences, getRetainedHeapSize, getSnapshot, getTechnicalName, getUsedHeapSize, resolveValue
static final String JAVA_LANG_CLASS
static final String JAVA_LANG_CLASSLOADER
String getName()
int getNumberOfObjects()
int[] getObjectIds() throws SnapshotException
SnapshotException
int getClassLoaderId()
long getClassLoaderAddress()
List<FieldDescriptor> getFieldDescriptors()
List<Field> getStaticFields()
long getHeapSizePerInstance()
long getRetainedHeapSizeOfObjects(boolean calculateIfNotAvailable, boolean calculateMinRetainedSize, IProgressListener listener) throws SnapshotException
SnapshotException
int getSuperClassId()
IClass getSuperClass()
boolean hasSuperClass()
List<IClass> getAllSubclasses()
boolean doesExtend(String className) throws SnapshotException
className
- SnapshotException
boolean isArrayType()