public class EventWaiter
extends java.lang.Object
implements java.util.EventListener
Modifier and Type | Field and Description |
---|---|
protected com.sun.jdi.event.Event |
fEvent |
protected com.sun.jdi.request.EventRequest |
fRequest |
protected boolean |
fShouldGo |
Constructor and Description |
---|
EventWaiter(com.sun.jdi.request.EventRequest request,
boolean shouldGo)
Creates a new EventWaiter for the given request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accessWatchpoint(com.sun.jdi.event.AccessWatchpointEvent event) |
boolean |
breakpoint(com.sun.jdi.event.BreakpointEvent event) |
boolean |
classPrepare(com.sun.jdi.event.ClassPrepareEvent event) |
boolean |
classUnload(com.sun.jdi.event.ClassUnloadEvent event) |
boolean |
exception(com.sun.jdi.event.ExceptionEvent event) |
protected boolean |
handleEvent(com.sun.jdi.event.Event event)
Handles an incoming event.
|
boolean |
methodEntry(com.sun.jdi.event.MethodEntryEvent event) |
boolean |
methodExit(com.sun.jdi.event.MethodExitEvent event) |
boolean |
modificationWatchpoint(com.sun.jdi.event.ModificationWatchpointEvent event) |
protected void |
notifyEvent(com.sun.jdi.event.Event event)
Notify any object that is waiting for an event.
|
boolean |
step(com.sun.jdi.event.StepEvent event) |
boolean |
threadDeath(com.sun.jdi.event.ThreadDeathEvent event) |
boolean |
threadStart(com.sun.jdi.event.ThreadStartEvent event) |
boolean |
vmDeath(com.sun.jdi.event.VMDeathEvent event) |
boolean |
vmDisconnect(com.sun.jdi.event.VMDisconnectEvent event) |
com.sun.jdi.event.Event |
waitEvent()
Waits for the first event corresponding to this waiter's request.
|
com.sun.jdi.event.Event |
waitEvent(long time)
Waits for the first event corresponding to this waiter's request
for the given time (in ms).
|
protected com.sun.jdi.request.EventRequest fRequest
protected boolean fShouldGo
protected com.sun.jdi.event.Event fEvent
public EventWaiter(com.sun.jdi.request.EventRequest request, boolean shouldGo)
request
- shouldGo
- public boolean accessWatchpoint(com.sun.jdi.event.AccessWatchpointEvent event)
org.eclipse.debug.jdi.tests.EventListener#accessWatchpoint(com.sun.jdi.event.AccessWatchpointEvent)
public boolean methodEntry(com.sun.jdi.event.MethodEntryEvent event)
org.eclipse.debug.jdi.tests.EventListener#methodEntry(com.sun.jdi.event.MethodEntryEvent)
public boolean methodExit(com.sun.jdi.event.MethodExitEvent event)
org.eclipse.debug.jdi.tests.EventListener#methodExit(com.sun.jdi.event.MethodExitEvent)
public boolean breakpoint(com.sun.jdi.event.BreakpointEvent event)
org.eclipse.debug.jdi.tests.EventListener#breakpoint(com.sun.jdi.event.BreakpointEvent)
public boolean classPrepare(com.sun.jdi.event.ClassPrepareEvent event)
org.eclipse.debug.jdi.tests.EventListener#classPrepare(com.sun.jdi.event.ClassPrepareEvent)
public boolean classUnload(com.sun.jdi.event.ClassUnloadEvent event)
org.eclipse.debug.jdi.tests.EventListener#classUnload(com.sun.jdi.event.ClassUnloadEvent)
public boolean exception(com.sun.jdi.event.ExceptionEvent event)
org.eclipse.debug.jdi.tests.EventListener#exception(com.sun.jdi.event.ExceptionEvent)
protected boolean handleEvent(com.sun.jdi.event.Event event)
public boolean modificationWatchpoint(com.sun.jdi.event.ModificationWatchpointEvent event)
org.eclipse.debug.jdi.tests.EventListener#modificationWatchpoint(com.sun.jdi.event.ModificationWatchpointEvent)
protected void notifyEvent(com.sun.jdi.event.Event event)
public boolean step(com.sun.jdi.event.StepEvent event)
org.eclipse.debug.jdi.tests.EventListener#step(com.sun.jdi.event.StepEvent)
public boolean threadDeath(com.sun.jdi.event.ThreadDeathEvent event)
org.eclipse.debug.jdi.tests.EventListener#threadDeath(com.sun.jdi.event.ThreadDeathEvent)
public boolean threadStart(com.sun.jdi.event.ThreadStartEvent event)
org.eclipse.debug.jdi.tests.EventListener#threadStart(com.sun.jdi.event.ThreadStartEvent)
public boolean vmDeath(com.sun.jdi.event.VMDeathEvent event)
org.eclipse.debug.jdi.tests.EventListener#vmDeath(com.sun.jdi.event.VMDeathEvent)
public boolean vmDisconnect(com.sun.jdi.event.VMDisconnectEvent event)
org.eclipse.debug.jdi.tests.EventListener#vmDisconnect(com.sun.jdi.event.VMDisconnectEvent)
public com.sun.jdi.event.Event waitEvent() throws java.lang.InterruptedException
java.lang.InterruptedException
public com.sun.jdi.event.Event waitEvent(long time) throws java.lang.InterruptedException
time
- java.lang.InterruptedException