|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttcl.lang.ExecutionTrace
public class ExecutionTrace
This class is used to trace command execution
| Field Summary | |
|---|---|
protected boolean |
deleted
set to true if deleted, to prevent execution |
static int |
ENTER
Indicates an ExecutionTrace that will execute on a command entry |
static int |
ENTERSTEP
Indicates a ExecutionTrace that will execute on before each command in a command |
static int |
LEAVE
Indicates a ExecutionTrace that will execute on a command exit |
static int |
LEAVESTEP
Indicates a ExecutionTrace that will execute after each command in a command |
protected int |
type
The type of trace, either ENTER, LEAVE, ENTERSTEP, or LEAVESTEP |
| Constructor Summary | |
|---|---|
ExecutionTrace(Interp interp,
int type,
TclObject callbackCmd)
Create a new ExecutionTrace |
|
| Method Summary | |
|---|---|
String |
getCallbackCmd()
|
int |
getType()
|
void |
setDeleted(boolean deleted)
|
void |
trace(Interp interp,
int type,
String commandString,
int resultCode,
TclObject result)
Call the callback function for this ExecutionTrace if it matches type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ENTER
public static final int LEAVE
public static final int ENTERSTEP
public static final int LEAVESTEP
protected int type
protected boolean deleted
| Constructor Detail |
|---|
public ExecutionTrace(Interp interp,
int type,
TclObject callbackCmd)
throws TclException
type - either ENTER, LEAVE, ENTERSTEP, or LEAVESTEPcallbackCmd - command to execute when fired
TclException| Method Detail |
|---|
public int getType()
public String getCallbackCmd()
public void setDeleted(boolean deleted)
deleted - if true, this trace will no longer be executed
public void trace(Interp interp,
int type,
String commandString,
int resultCode,
TclObject result)
throws TclException
interp - type - type of trace being executedeither ENTER, LEAVE, ENTERSTEP, or
LEAVESTEPcommandString - resultCode - result -
TclException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||