com.ibm.dtfj.java
Interface JavaReference
- public interface JavaReference
Field Summary
Modifier and Type | Field and Description |
---|---|
|
HEAP_ROOT_CLASSLOADER
Classloader heap root
|
|
HEAP_ROOT_FINALIZABLE_OBJ
Finalizable object heap root
|
|
HEAP_ROOT_JNI_GLOBAL
JNI global reference heap root
|
|
HEAP_ROOT_JNI_LOCAL
JNI local reference heap root
|
|
HEAP_ROOT_MONITOR
Monitor heap root
|
|
HEAP_ROOT_OTHER
Other heap root type
|
|
HEAP_ROOT_STACK_LOCAL
Stack local heap root
|
|
HEAP_ROOT_STRINGTABLE
Stringtable heap root
|
|
HEAP_ROOT_SYSTEM_CLASS
System class heap root
|
|
HEAP_ROOT_THREAD
Thread heap root
|
|
HEAP_ROOT_UNFINALIZED_OBJ
Unfinalized object heap root
|
|
HEAP_ROOT_UNKNOWN
Unknown heap root type
|
|
REACHABILITY_PHANTOM
Reachability of target object via this reference is Phantom
|
|
REACHABILITY_SOFT
Reachability of target object via this reference is Soft
|
|
REACHABILITY_STRONG
Reachability of target object via this reference is Strong
|
|
REACHABILITY_UNKNOWN
Reachability of target object via this reference is unknown
|
|
REACHABILITY_WEAK
Reachability of target object via this reference is Weak
|
|
REFERENCE_ARRAY_ELEMENT
Reference from an array to one of its elements
|
|
REFERENCE_ASSOCIATED_CLASS
Reference from a JavaObject representing a Class to the associated JavaClass
|
|
REFERENCE_CLASS
Reference from an object to its class
|
|
REFERENCE_CLASS_LOADER
Reference from a class to its class loader
|
|
REFERENCE_CLASS_OBJECT
Reference from a class to its java.lang.Class instance
|
|
REFERENCE_CONSTANT_POOL
Reference from a class to a resolved entry in the constant pool
|
|
REFERENCE_FIELD
Reference from an object to the value of one of its instance fields
|
|
REFERENCE_INTERFACE
Reference from a class to one of its interfaces
|
|
REFERENCE_LOADED_CLASS
Reference from a classloader object to its loaded classes
|
|
REFERENCE_PROTECTION_DOMAIN
Reference from a class to its protection domain
|
|
REFERENCE_SIGNERS
Reference from a class to its signers array
|
|
REFERENCE_STATIC_FIELD
Reference from a class to the value of one of its static fields
|
|
REFERENCE_SUPERCLASS
Reference from a class to its superclass
|
|
REFERENCE_UNKNOWN
Unknown reference type
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getDescription()
Get a string describing the reference type.
|
|
getReachability()
Get the reachability of the target object via this specific reference.
|
|
getReferenceType()
Get the reference type, as defined in the JVMTI specification.
|
|
getRootType()
Get the root type, as defined in the JVMTI specification.
|
|
getSource()
Get the source of this reference if available.
|
|
getTarget()
Get the object referred to by this reference.
|
|
isClassReference()
Does this reference point to a class?
|
|
isObjectReference()
Does this reference point to an object in the heap?
|
Field Detail
HEAP_ROOT_UNKNOWN
- static final int HEAP_ROOT_UNKNOWN
Unknown heap root type
See Also:
HEAP_ROOT_JNI_GLOBAL
- static final int HEAP_ROOT_JNI_GLOBAL
JNI global reference heap root
See Also:
HEAP_ROOT_SYSTEM_CLASS
- static final int HEAP_ROOT_SYSTEM_CLASS
System class heap root
See Also:
HEAP_ROOT_MONITOR
- static final int HEAP_ROOT_MONITOR
Monitor heap root
See Also:
HEAP_ROOT_STACK_LOCAL
- static final int HEAP_ROOT_STACK_LOCAL
Stack local heap root
See Also:
HEAP_ROOT_JNI_LOCAL
- static final int HEAP_ROOT_JNI_LOCAL
JNI local reference heap root
See Also:
HEAP_ROOT_THREAD
- static final int HEAP_ROOT_THREAD
Thread heap root
See Also:
HEAP_ROOT_OTHER
- static final int HEAP_ROOT_OTHER
Other heap root type
See Also:
HEAP_ROOT_FINALIZABLE_OBJ
- static final int HEAP_ROOT_FINALIZABLE_OBJ
Finalizable object heap root
See Also:
HEAP_ROOT_UNFINALIZED_OBJ
- static final int HEAP_ROOT_UNFINALIZED_OBJ
Unfinalized object heap root
See Also:
HEAP_ROOT_CLASSLOADER
- static final int HEAP_ROOT_CLASSLOADER
Classloader heap root
See Also:
HEAP_ROOT_STRINGTABLE
- static final int HEAP_ROOT_STRINGTABLE
Stringtable heap root
See Also:
REFERENCE_UNKNOWN
- static final int REFERENCE_UNKNOWN
Unknown reference type
See Also:
REFERENCE_CLASS
- static final int REFERENCE_CLASS
Reference from an object to its class
See Also:
REFERENCE_FIELD
- static final int REFERENCE_FIELD
Reference from an object to the value of one of its instance fields
See Also:
REFERENCE_ARRAY_ELEMENT
- static final int REFERENCE_ARRAY_ELEMENT
Reference from an array to one of its elements
See Also:
REFERENCE_CLASS_LOADER
- static final int REFERENCE_CLASS_LOADER
Reference from a class to its class loader
See Also:
REFERENCE_SIGNERS
- static final int REFERENCE_SIGNERS
Reference from a class to its signers array
See Also:
REFERENCE_PROTECTION_DOMAIN
- static final int REFERENCE_PROTECTION_DOMAIN
Reference from a class to its protection domain
See Also:
REFERENCE_INTERFACE
- static final int REFERENCE_INTERFACE
Reference from a class to one of its interfaces
See Also:
REFERENCE_STATIC_FIELD
- static final int REFERENCE_STATIC_FIELD
Reference from a class to the value of one of its static fields
See Also:
REFERENCE_CONSTANT_POOL
- static final int REFERENCE_CONSTANT_POOL
Reference from a class to a resolved entry in the constant pool
See Also:
REFERENCE_SUPERCLASS
- static final int REFERENCE_SUPERCLASS
Reference from a class to its superclass
See Also:
REFERENCE_LOADED_CLASS
- static final int REFERENCE_LOADED_CLASS
Reference from a classloader object to its loaded classes
See Also:
REFERENCE_CLASS_OBJECT
- static final int REFERENCE_CLASS_OBJECT
Reference from a class to its java.lang.Class instance
See Also:
REFERENCE_ASSOCIATED_CLASS
- static final int REFERENCE_ASSOCIATED_CLASS
Reference from a JavaObject representing a Class to the associated JavaClass
See Also:
REACHABILITY_UNKNOWN
- static final int REACHABILITY_UNKNOWN
Reachability of target object via this reference is unknown
See Also:
REACHABILITY_STRONG
- static final int REACHABILITY_STRONG
Reachability of target object via this reference is Strong
See Also:
REACHABILITY_SOFT
- static final int REACHABILITY_SOFT
Reachability of target object via this reference is Soft
See Also:
REACHABILITY_WEAK
- static final int REACHABILITY_WEAK
Reachability of target object via this reference is Weak
See Also:
REACHABILITY_PHANTOM
- static final int REACHABILITY_PHANTOM
Reachability of target object via this reference is Phantom
See Also:
Method Detail
getRootType
- int getRootType()
- throws CorruptDataException
Get the root type, as defined in the JVMTI specification.
Returns:
an integer representing the root type, see HEAP_ROOT_xxxx statics.
Throws:
getReferenceType
- int getReferenceType()
- throws CorruptDataException
Get the reference type, as defined in the JVMTI specification.
Returns:
an integer representing the reference type, see REFERENCE_xxxx statics.
Throws:
getReachability
- int getReachability()
- throws CorruptDataException
Get the reachability of the target object via this specific reference.
Returns:
an integer representing the reachability, see REACHABILITY_xxxx statics.
Throws:
getDescription
- java.lang.String getDescription( )
Get a string describing the reference type.
Implementors should not depend on the contents or identity of this string.
e.g. "JNI Weak global reference", "Instance field 'MyClass.value'", "Constant pool string constant"
Returns:
a String describing the reference type
isObjectReference
- boolean isObjectReference()
- throws DataUnavailable
- CorruptDataException
Does this reference point to an object in the heap?
isClassReference
- boolean isClassReference()
- throws DataUnavailable
- CorruptDataException
Does this reference point to a class?
getTarget
- java.lang.Object getTarget()
- throws DataUnavailable
- CorruptDataException
Get the object referred to by this reference.
getSource
- java.lang.Object getSource()
- throws DataUnavailable
- CorruptDataException
Get the source of this reference if available.
Returns:
a JavaClass, JavaObject, JavaStackFrame or null if unknown
Throws: