Module jdk.jdi
Package com.sun.jdi

Interface ObjectReference

All Superinterfaces:
Mirror, Value
All Known Subinterfaces:
ArrayReference, ClassLoaderReference, ClassObjectReference, ModuleReference, StringReference, ThreadGroupReference, ThreadReference

public interface ObjectReference extends Value
An object that currently exists in the target VM. An ObjectReference mirrors only the object itself and is not specific to any Field or LocalVariable to which it is currently assigned. An ObjectReference can have 0 or more references from field(s) and/or variable(s).

Any method on ObjectReference which directly or indirectly takes ObjectReference as a parameter may throw VMDisconnectedException if the target VM is disconnected and the VMDisconnectEvent has been or is available to be read from the EventQueue.

Any method on ObjectReference which directly or indirectly takes ObjectReference as a parameter may throw VMOutOfMemoryException if the target VM has run out of memory.

Any method on ObjectReference or which directly or indirectly takes ObjectReference as parameter may throw ObjectCollectedException if the mirrored object has been garbage collected.

Since:
1.3