pnuts.tools
Class CommandEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--pnuts.tools.CommandEvent
All Implemented Interfaces:
java.io.Serializable

public class CommandEvent
extends java.util.EventObject

Event object which is created by DebugContext to communicate with a debugger.

See Also:
Serialized Form

Field Summary
static int EXCEPTION
          The event type which indicates some exception has been thrown.
static int EXITED
          The event type which indicates the execution was normally terminated.
static int LINE_UPDATED
          The event type which indicates line number has been changed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CommandEvent(Context context, int eventType, java.lang.Object arg)
          Constructor
 
Method Summary
 java.lang.Object getArg()
          Get the optional argument
 int getType()
          Get the event type
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LINE_UPDATED

public static final int LINE_UPDATED
The event type which indicates line number has been changed.

EXCEPTION

public static final int EXCEPTION
The event type which indicates some exception has been thrown.

EXITED

public static final int EXITED
The event type which indicates the execution was normally terminated.
Constructor Detail

CommandEvent

public CommandEvent(Context context,
                    int eventType,
                    java.lang.Object arg)
Constructor
Parameters:
context - The context which creates the Command Event object.
eventType - The event type.
arg - Optional argument.
Method Detail

getType

public int getType()
Get the event type

getArg

public java.lang.Object getArg()
Get the optional argument