pnuts.tools
Class CommandEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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 CLOSE_FRAME
          The event type which indicates a function returned.
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.
static int OPEN_FRAME
          The event type which indicates a function is called.
 
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.

See Also:
Constant Field Values

EXCEPTION

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

See Also:
Constant Field Values

EXITED

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

See Also:
Constant Field Values

OPEN_FRAME

public static final int OPEN_FRAME
The event type which indicates a function is called.

See Also:
Constant Field Values

CLOSE_FRAME

public static final int CLOSE_FRAME
The event type which indicates a function returned.

See Also:
Constant Field Values
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