gnu.classpath.jdwp.event
Class EventRequest
A class which represents a request by the debugger for an event
in the VM. EventRequest
s usually have event filters
associated with them, which allow the debugger to specify conditions
under which the notification should be sent (specific thread, specific
class, ignore count, etc).
EventRequest(byte kind, byte suspendPolicy) - Construct a new
EventRequest
|
EventRequest(int id, byte kind, byte suspendPolicy) - Construct a new
EventRequest with the given ID
|
void | addFilter(IEventFilter filter) - Creates a new event filter, adding it to this request
|
byte | getEventKind() - Returns the kind of event for this request
|
Collection<E> | getFilters() - Returns the filters attached to this request
|
int | getId() - Returns the request id of this request
|
byte | getSuspendPolicy() - Returns the suspend policy for this request
|
boolean | matches(Event theEvent) - Determines whether the given event matches this request
|
void | setId(int id) - Sets the id of the request (used for auto-generated events)
|
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
EVENT_THREAD_END
public static final byte EVENT_THREAD_END
Thread end/death event
EVENT_VM_DEATH
public static final byte EVENT_VM_DEATH
Virutal machine death
EVENT_VM_INIT
public static final byte EVENT_VM_INIT
Virtual machine initialization/start
SUSPEND_ALL
public static final byte SUSPEND_ALL
Suspend all threads
SUSPEND_NONE
public static final byte SUSPEND_NONE
Do not suspend any threads
SUSPEND_THREAD
public static final byte SUSPEND_THREAD
Suspend the thread in which the event occurred
EventRequest
public EventRequest(byte kind,
byte suspendPolicy)
Construct a new EventRequest
kind
- the kind of event requestedsuspendPolicy
- how to suspend threads when event occurs
EventRequest
public EventRequest(int id,
byte kind,
byte suspendPolicy)
Construct a new EventRequest
with the given ID
id
- the id of the request to createkind
- the kind of event requestedsuspendPolicy
- how to suspend threads when event occurs
getEventKind
public byte getEventKind()
Returns the kind of event for this request
getId
public int getId()
Returns the request id of this request
getSuspendPolicy
public byte getSuspendPolicy()
Returns the suspend policy for this request
matches
public boolean matches(Event theEvent)
Determines whether the given event matches this request
theEvent
- the event to compare to
setId
public void setId(int id)
Sets the id of the request (used for auto-generated events)
EventRequest.java -- an event request from the debugger
Copyright (C) 2005, 2006 Free Software Foundation
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.