com.bluemarsh.jswat.breakpoint
Class BreakpointEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.bluemarsh.jswat.breakpoint.BreakpointEvent
All Implemented Interfaces:
java.io.Serializable

public class BreakpointEvent
extends java.util.EventObject

An event which indicates that a breakpoint has changed status.

Author:
Nathan Fiedler
See Also:
Serialized Form

Field Summary
protected  Breakpoint bp
          The breakpoint that changed.
protected  int type
          The type of breakpoint change.
static int TYPE_ADDED
          The breakpoint added event type.
static int TYPE_MODIFIED
          The breakpoint enabled event type.
static int TYPE_REMOVED
          The breakpoint removed event type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BreakpointEvent(java.lang.Object source, Breakpoint bp, int type)
          Constructs a new BreakpointEvent.
 
Method Summary
 Breakpoint getBreakpoint()
          Get the breakpoint that changed.
 int getType()
          Get the breakpoint change type.
 java.lang.String toString()
          Returns a String representation of this BreakpointEvent.
 
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
 

Field Detail

TYPE_ADDED

public static final int TYPE_ADDED
The breakpoint added event type.

TYPE_MODIFIED

public static final int TYPE_MODIFIED
The breakpoint enabled event type.

TYPE_REMOVED

public static final int TYPE_REMOVED
The breakpoint removed event type.

bp

protected Breakpoint bp
The breakpoint that changed.

type

protected int type
The type of breakpoint change.
Constructor Detail

BreakpointEvent

public BreakpointEvent(java.lang.Object source,
                       Breakpoint bp,
                       int type)
Constructs a new BreakpointEvent.
Parameters:
source - Source of this event.
bp - Breakpoint that changed.
type - Type of breakpoint change.
Method Detail

getBreakpoint

public Breakpoint getBreakpoint()
Get the breakpoint that changed.
Returns:
breakpoint request.

getType

public int getType()
Get the breakpoint change type.
Returns:
breakpoint change type (one of TYPE_* from BreakpointEvent).

toString

public java.lang.String toString()
Returns a String representation of this BreakpointEvent.
Overrides:
toString in class java.util.EventObject
Returns:
string representation of this BreakpointEvent.