APIdia Launch Partner
Top Description Methods
com.sun.jdi.event

public Interface WatchpointEvent

extends LocatableEvent
Known Direct Subinterfaces
com.sun.jdi.event.AccessWatchpointEvent, com.sun.jdi.event.ModificationWatchpointEvent
Known Direct Implementers
com.sun.tools.jdi.EventSetImpl.WatchpointEventImpl
Imports
com.sun.jdi.Field, .ObjectCollectedException, .ObjectReference, .Value, .VirtualMachine

Notification of a field triggered event encountered by a thread in the target VM.
Author
Robert Field
Since
1.3
See Also
EventQueue, VirtualMachine

Method Summary

Modifier and TypeMethod and Description
public Field

Returns:

a Field which mirrors the field in the target VM.
field
()

Returns the field that is about to be accessed/modified.

public ObjectReference

Returns:

a ObjectReference which mirrors the event's object in the target VM.
object
()

Returns the object whose field is about to be accessed/modified.

public Value
valueCurrent()

Current value of the field.

Inherited from com.sun.jdi.event.LocatableEvent:
thread

Method Detail

fieldback to summary
public Field field()

Returns the field that is about to be accessed/modified.

Returns:Field

a Field which mirrors the field in the target VM.

Exceptions
ObjectCollectedException:
may be thrown if class has been garbage collected.
objectback to summary
public ObjectReference object()

Returns the object whose field is about to be accessed/modified. Return null is the access is to a static field.

Returns:ObjectReference

a ObjectReference which mirrors the event's object in the target VM.

valueCurrentback to summary
public Value valueCurrent()

Current value of the field.

Exceptions
ObjectCollectedException:
if object or class have been garbage collected.