|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaReference
Represents a Java reference.
Field Summary | |
---|---|
static int |
HEAP_ROOT_JNI_GLOBAL
JNI global reference heap root |
static int |
HEAP_ROOT_JNI_LOCAL
JNI local reference heap root |
static int |
HEAP_ROOT_MONITOR
Monitor heap root |
static int |
HEAP_ROOT_OTHER
Other heap root type |
static int |
HEAP_ROOT_STACK_LOCAL
Stack local heap root |
static int |
HEAP_ROOT_SYSTEM_CLASS
System class heap root |
static int |
HEAP_ROOT_THREAD
Thread heap root |
static int |
HEAP_ROOT_UNKNOWN
Unknown heap root type |
static int |
REACHABILITY_PHANTOM
Reachability of target object via this reference is Phantom |
static int |
REACHABILITY_SOFT
Reachability of target object via this reference is Soft |
static int |
REACHABILITY_STRONG
Reachability of target object via this reference is Strong |
static int |
REACHABILITY_UNKNOWN
Reachability of target object via this reference is unknown |
static int |
REACHABILITY_WEAK
Reachability of target object via this reference is Weak |
static int |
REFERENCE_ARRAY_ELEMENT
Reference from an array to one of its elements |
static int |
REFERENCE_CLASS
Reference from an object to its class |
static int |
REFERENCE_CLASS_LOADER
Reference from a class to its class loader |
static int |
REFERENCE_CONSTANT_POOL
Reference from a class to a resolved entry in the constant pool |
static int |
REFERENCE_FIELD
Reference from an object to the value of one of its instance fields |
static int |
REFERENCE_INTERFACE
Reference from a class to one of its interfaces |
static int |
REFERENCE_PROTECTION_DOMAIN
Reference from a class to its protection domain |
static int |
REFERENCE_SIGNERS
Reference from a class to its signers array |
static int |
REFERENCE_STATIC_FIELD
Reference from a class to the value of one of its static fields |
static int |
REFERENCE_UNKNOWN
Unknown reference type |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get a string describing the reference type. |
int |
getReachability()
Get the reachability of the target object via this specific reference. |
int |
getReferenceType()
Get the reference type, as defined in the JVMTI specification. |
int |
getRootType()
Get the root type, as defined in the JVMTI specification. |
java.lang.Object |
getSource()
Get the source of this reference if available. |
java.lang.Object |
getTarget()
Get the object referred to by this reference. |
boolean |
isClassReference()
Does this reference point to a class? |
boolean |
isObjectReference()
Does this reference point to an object in the heap? |
Field Detail |
---|
static final int HEAP_ROOT_UNKNOWN
static final int HEAP_ROOT_JNI_GLOBAL
static final int HEAP_ROOT_SYSTEM_CLASS
static final int HEAP_ROOT_MONITOR
static final int HEAP_ROOT_STACK_LOCAL
static final int HEAP_ROOT_JNI_LOCAL
static final int HEAP_ROOT_THREAD
static final int HEAP_ROOT_OTHER
static final int REFERENCE_UNKNOWN
static final int REFERENCE_CLASS
static final int REFERENCE_FIELD
static final int REFERENCE_ARRAY_ELEMENT
static final int REFERENCE_CLASS_LOADER
static final int REFERENCE_SIGNERS
static final int REFERENCE_PROTECTION_DOMAIN
static final int REFERENCE_INTERFACE
static final int REFERENCE_STATIC_FIELD
static final int REFERENCE_CONSTANT_POOL
static final int REACHABILITY_UNKNOWN
static final int REACHABILITY_STRONG
static final int REACHABILITY_SOFT
static final int REACHABILITY_WEAK
static final int REACHABILITY_PHANTOM
Method Detail |
---|
int getRootType() throws CorruptDataException
CorruptDataException
int getReferenceType() throws CorruptDataException
CorruptDataException
int getReachability() throws CorruptDataException
CorruptDataException
java.lang.String getDescription()
boolean isObjectReference() throws DataUnavailable, CorruptDataException
DataUnavailable
CorruptDataException
boolean isClassReference() throws DataUnavailable, CorruptDataException
DataUnavailable
CorruptDataException
java.lang.Object getTarget() throws DataUnavailable, CorruptDataException
DataUnavailable
CorruptDataException
java.lang.Object getSource() throws DataUnavailable, CorruptDataException
DataUnavailable
CorruptDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |