26 package com.sun.jdi.event;
27
28 import com.sun.jdi.*;
29 import com.sun.jdi.request.EventRequest;
30
31 /**
32 * An occurrence in a target VM that is of interest to a debugger. Event is
33 * the common superinterface for all events (examples include
34 * {@link BreakpointEvent}, {@link ExceptionEvent},
35 * {@link ClassPrepareEvent}).
36 * When an event occurs, an instance of Event as a component of
37 * an {@link EventSet} is enqueued in the
38 * {@link VirtualMachine}'s {@link EventQueue}.
39 *
40 * @see EventSet
41 * @see EventQueue
42 *
43 * @author Robert Field
44 * @since 1.3
45 */
46 public interface Event extends Mirror {
47
48 /**
49 * @return The {@link EventRequest} that requested this event.
50 * Some events (eg. {@link VMDeathEvent}) may not have
51 * a cooresponding request and thus will return null.
52 */
53 EventRequest request();
54 }
|
26 package com.sun.jdi.event;
27
28 import com.sun.jdi.*;
29 import com.sun.jdi.request.EventRequest;
30
31 /**
32 * An occurrence in a target VM that is of interest to a debugger. Event is
33 * the common superinterface for all events (examples include
34 * {@link BreakpointEvent}, {@link ExceptionEvent},
35 * {@link ClassPrepareEvent}).
36 * When an event occurs, an instance of Event as a component of
37 * an {@link EventSet} is enqueued in the
38 * {@link VirtualMachine}'s {@link EventQueue}.
39 *
40 * @see EventSet
41 * @see EventQueue
42 *
43 * @author Robert Field
44 * @since 1.3
45 */
46 @jdk.Supported
47 public interface Event extends Mirror {
48
49 /**
50 * @return The {@link EventRequest} that requested this event.
51 * Some events (eg. {@link VMDeathEvent}) may not have
52 * a cooresponding request and thus will return null.
53 */
54 EventRequest request();
55 }
|