com.bluemarsh.jswat.event
Class ContextChangeEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.bluemarsh.jswat.event.ContextChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ContextChangeEvent
- extends java.util.EventObject
An event which indicates that the debugger context has changed.
This includes the current thread, current stack frame, and
current stepping location.
- Version:
- 1.1 3/18/01
- Author:
- Nathan Fiedler
- See Also:
- Serialized Form
Field Summary |
static int |
TYPE_FRAME
The current frame changed event type. |
static int |
TYPE_LOCATION
The current location changed event type. |
static int |
TYPE_THREAD
The current thread changed event type. |
protected int |
types
The type flags of this context change. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ContextChangeEvent(java.lang.Object source,
int types)
Constructs a new ContextChangeEvent. |
Method Summary |
boolean |
isType(int type)
Compares the type of this event to the given argument and
returns true if they match. |
java.lang.String |
toString()
Returns a String representation of this ContextChangeEvent. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE_THREAD
public static final int TYPE_THREAD
- The current thread changed event type.
TYPE_FRAME
public static final int TYPE_FRAME
- The current frame changed event type.
TYPE_LOCATION
public static final int TYPE_LOCATION
- The current location changed event type.
types
protected int types
- The type flags of this context change.
ContextChangeEvent
public ContextChangeEvent(java.lang.Object source,
int types)
- Constructs a new ContextChangeEvent.
- Parameters:
source
- Source of this event.types
- A set of type flags.
isType
public boolean isType(int type)
- Compares the type of this event to the given argument and
returns true if they match. This event may match more than
one type of event. For instance, if a thread change occurs,
the frame and location will also change at the same time.
- Parameters:
type
- One of THREAD
,
FRAME
, or
LOCATION
.- Returns:
- true if this event is of the given type
toString
public java.lang.String toString()
- Returns a String representation of this ContextChangeEvent.
- Overrides:
toString
in class java.util.EventObject
- Returns:
- A String representation of this ContextChangeEvent.