| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private ObjectReferenceImpl. | |
| private int | |
| private static final ObjectReferenceImpl. | |
| private static final ObjectReferenceImpl. | |
| protected long | |
| private ReferenceType |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| private void | |
| public synchronized void | disableCollection()
Implements com. Prevents garbage collection for this object. |
| private void | |
| public synchronized void | enableCollection()
Implements com. Permits garbage collection for this object. |
| public int | entryCount()
Implements com. Returns the number of times this object's monitor has been entered by the current owning thread if the owning thread is platform thread; Returns 0 if not owned by a platform thread. |
| public boolean | equals(Object obj)
Overrides com. Implements com. Compares the specified Object with this ObjectReference for equality. |
| protected ObjectReferenceImpl. | |
| public Value | getValue(Field sig)
Implements com. Gets the value of a given instance or static field in this object. |
| public Map | getValues(List<? extends Field> theFields)
Implements com. Gets the value of multiple instance and/or static fields in this object. |
| public int | hashCode()
Overrides com. Implements com. Returns the hash code value for this ObjectReference. |
| protected ClassTypeImpl | |
| public Value | invokeMethod(ThreadReference threadIntf, Method methodIntf, List<? extends Value> origArguments, int options)
Implements com. Invokes the specified |
| pack-priv boolean | |
| public boolean | isCollected()
Implements com. Determines if this object has been garbage collected in the target VM. |
| private static boolean | |
| pack-priv JDWP. | |
| protected ObjectReferenceImpl. | |
| public ThreadReference | owningThread()
Implements com. Returns a |
| pack-priv ValueImpl | prepareForAssignmentTo(ValueContainer destination)
Implements abstract com.
|
| pack-priv long | |
| public ReferenceType | referenceType()
Implements com. Gets the |
| public List | referringObjects(long maxReferrers)
Implements com. Returns objects that directly reference this object. |
| pack-priv PacketStream | sendInvokeCommand(final ThreadReferenceImpl thread, final ClassTypeImpl refType, final MethodImpl method, final ValueImpl[] args, final int options)
|
| public void | setValue(Field field, Value value)
Implements com. Sets the value of a given instance or static field in this object. |
| public String | toString()
Overrides java. Implements com. Returns a String describing this mirror |
| public Type | |
| pack-priv byte | |
| public long | uniqueID()
Implements com. Returns a unique identifier for this ObjectReference. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | |
| public boolean | |
| public List | waitingThreads()
Implements com. Returns a List containing a |
| addedListener | back to summary |
|---|---|
| pack-priv boolean addedListener | |
| cache | back to summary |
|---|---|
| private ObjectReferenceImpl. | |
| gcDisableCount | back to summary |
|---|---|
| private int gcDisableCount | |
| markerCache | back to summary |
|---|---|
| private static final ObjectReferenceImpl. | |
| noInitCache | back to summary |
|---|---|
| private static final ObjectReferenceImpl. | |
| ref | back to summary |
|---|---|
| protected long ref | |
| type | back to summary |
|---|---|
| private ReferenceType type | |
| ObjectReferenceImpl | back to summary |
|---|---|
| pack-priv ObjectReferenceImpl(VirtualMachine aVm, long aRef) | |
| description | back to summary |
|---|---|
| protected String description() | |
| disableCache | back to summary |
|---|---|
| private void disableCache() | |
| disableCollection | back to summary |
|---|---|
| public synchronized void disableCollection() Implements com. Doc from com. Prevents garbage collection for this object. By default all
Calls to this method are counted. Every call to this method
requires a corresponding call to Note that while the target VM is suspended, no garbage collection will occur because all threads are suspended. The typical examination of variables, fields, and arrays during the suspension is safe without explicitly disabling garbage collection. This method should be used sparingly, as it alters the pattern of garbage collection in the target VM and, consequently, may result in application behavior under the debugger that differs from its non-debugged behavior. | |
| enableCache | back to summary |
|---|---|
| private void enableCache() | |
| enableCollection | back to summary |
|---|---|
| public synchronized void enableCollection() Implements com. Doc from com. Permits garbage collection for this object. By default all
| |
| entryCount | back to summary |
|---|---|
| public int entryCount() throws IncompatibleThreadStateException Implements com. Doc from com. Returns the number of times this object's monitor has been entered by
the current owning thread if the owning thread is platform thread;
Returns 0 if not owned by a platform thread.
See
Not all target VMs support this operation. See
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides com. Implements com. Doc from com. Compares the specified Object with this ObjectReference for equality. | |
| getCache | back to summary |
|---|---|
| protected ObjectReferenceImpl. | |
| getValue | back to summary |
|---|---|
| public Value getValue(Field sig) Implements com. Doc from com. Gets the value of a given instance or static field in this object. The Field must be valid for this ObjectReference; that is, it must be from the mirrored object's class or a superclass of that class. | |
| getValues | back to summary |
|---|---|
| public Map Implements com. Doc from com. Gets the value of multiple instance and/or static fields in this object. The Fields must be valid for this ObjectReference; that is, they must be from the mirrored object's class or a superclass of that class. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Implements com. Doc from com. Returns the hash code value for this ObjectReference.
| |
| invokableReferenceType | back to summary |
|---|---|
| protected ClassTypeImpl invokableReferenceType(Method method) | |
| invokeMethod | back to summary |
|---|---|
| public Value invokeMethod(ThreadReference threadIntf, Method methodIntf, List<? extends Value> origArguments, int options) throws InvalidTypeException, IncompatibleThreadStateException, InvocationException, ClassNotLoadedException Implements com. Doc from com. Invokes the specified
The method invocation will occur in the specified thread.
Method invocation can occur only if the specified thread
has been suspended by an event which occurred in that thread.
Method invocation is not supported
when the target VM has been suspended through
The specified method is invoked with the arguments in the specified
argument list. The method invocation is synchronous; this method
does not return until the invoked method returns in the target VM.
If the invoked method throws an exception, this method
will throw an Object arguments must be assignment compatible with the argument type (This implies that the argument type must be loaded through the enclosing class's class loader). Primitive arguments must be either assignment compatible with the argument type or must be convertible to the argument type without loss of information. If the method being called accepts a variable number of arguments, then the last argument type is an array of some component type. The argument in the matching position can be omitted, or can be null, an array of the same component type, or an argument of the component type followed by any number of other arguments of the same type. If the argument is omitted, then a 0 length array of the component type is passed. The component type can be a primitive type. Autoboxing is not supported. See section 5.2 of The Java Language Specification for more information on assignment compatibility.
By default, the method is invoked using dynamic lookup as
documented in section 15.12.4.4 of
The Java Language Specification
in particular, overriding based on the runtime type of the object
mirrored by this
By default, all threads in the target VM are resumed while
the method is being invoked if they were previously
suspended by an event or by
The resumption of other threads during the invocation can be prevented
by specifying the
If the target VM is disconnected during the invoke (for example, through
| |
| isClassObject | back to summary |
|---|---|
| pack-priv boolean isClassObject() | |
| isCollected | back to summary |
|---|---|
| public boolean isCollected() Implements com. Doc from com. Determines if this object has been garbage collected in the target VM. | |
| isNonVirtual | back to summary |
|---|---|
| private static boolean isNonVirtual(int options) | |
| jdwpMonitorInfo | back to summary |
|---|---|
| pack-priv JDWP. | |
| newCache | back to summary |
|---|---|
| protected ObjectReferenceImpl. | |
| owningThread | back to summary |
|---|---|
| public ThreadReference owningThread() throws IncompatibleThreadStateException Implements com. Doc from com. Returns a
Not all target VMs support this operation. See
| |
| prepareForAssignmentTo | back to summary |
|---|---|
| pack-priv ValueImpl prepareForAssignmentTo(ValueContainer destination) throws InvalidTypeException, ClassNotLoadedException Implements abstract com. | |
| ref | back to summary |
|---|---|
| pack-priv long ref() | |
| referenceType | back to summary |
|---|---|
| public ReferenceType referenceType() Implements com. Doc from com. Gets the
The ReferenceType of obj will mirror java.lang.String and not java.lang.Object. The type of an object never changes, so this method will always return the same ReferenceType over the lifetime of the mirrored object.
The returned ReferenceType will be a | |
| referringObjects | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns objects that directly reference this object. Only objects that are reachable for the purposes of garbage collection are returned. Note that an object can also be referenced in other ways, such as from a local variable in a stack frame, or from a JNI global reference. Such non-object referrers are not returned by this method.
Not all target virtual machines support this operation.
Use | |
| sendInvokeCommand | back to summary |
|---|---|
| pack-priv PacketStream sendInvokeCommand(final ThreadReferenceImpl thread, final ClassTypeImpl refType, final MethodImpl method, final ValueImpl[] args, final int options) | |
| setValue | back to summary |
|---|---|
| public void setValue(Field field, Value value) throws InvalidTypeException, ClassNotLoadedException Implements com. Doc from com. Sets the value of a given instance or static field in this object.
The Object values must be assignment compatible with the field type (This implies that the field type must be loaded through the enclosing class's class loader). Primitive values must be either assignment compatible with the field type or must be convertible to the field type without loss of information. See section 5.2 of The Java Language Specification for more information on assignment compatibility.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements com. Doc from com. Returns a String describing this mirror | |
| type | back to summary |
|---|---|
| public Type type() Implements com. Doc from com. Returns the run-time type of this value. | |
| typeValueKey | back to summary |
|---|---|
| pack-priv byte typeValueKey() Implements abstract com. | |
| uniqueID | back to summary |
|---|---|
| public long uniqueID() Implements com. Doc from com. Returns a unique identifier for this ObjectReference. It is guaranteed to be unique among all ObjectReferences from the same VM that have not yet been disposed. The guarantee applies as long as this ObjectReference has not yet been disposed. | |
| validateAssignment | back to summary |
|---|---|
| pack-priv void validateAssignment(ValueContainer destination) throws InvalidTypeException, ClassNotLoadedException | |
| validateClassMethodInvocation | back to summary |
|---|---|
| pack-priv void validateClassMethodInvocation(Method method, int options) throws InvalidTypeException, InvocationException | |
| validateIfaceMethodInvocation | back to summary |
|---|---|
| pack-priv void validateIfaceMethodInvocation(Method method, int options) throws InvalidTypeException, InvocationException | |
| validateMethodInvocation | back to summary |
|---|---|
| pack-priv void validateMethodInvocation(Method method, int options) throws InvalidTypeException, InvocationException | |
| vmNotSuspended | back to summary |
|---|---|
| public boolean vmNotSuspended(VMAction action) Implements com. | |
| vmSuspended | back to summary |
|---|---|
| public boolean vmSuspended(VMAction action) Implements com. | |
| waitingThreads | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a List containing a
Not all target VMs support this operation. See
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv JDWP. |
| Access | Constructor and Description |
|---|---|
| protected |
| monitorInfo | back to summary |
|---|---|
| pack-priv JDWP. | |
| Cache | back to summary |
|---|---|
| protected Cache() | |