| java.lang.Object tcl.lang.InterpSlaveCmd
InterpSlaveCmd | class InterpSlaveCmd implements CommandWithDispose,AssocData(Code) | | This class implements the slave interpreter commands, which are created
in response to the built-in "interp create" command in Tcl.
It is also used by the "interp" command to record and find information
about slave interpreters. Maps from a command name in the master to
information about a slave interpreter, e.g. what aliases are defined
in it.
|
Method Summary | |
public void | cmdProc(Interp interp, TclObject[] objv) ----------------------------------------------------------------------
SlaveObjCmd -> cmdProc
Command to manipulate an interpreter, e.g. | static Interp | create(Interp interp, TclObject path, boolean safe) ----------------------------------------------------------------------
slaveCreate -> create
Helper function to do the actual work of creating a slave interp
and new object command. | public void | disposeAssocData(Interp interp) | public void | disposeCmd() ----------------------------------------------------------------------
disposeCmd --
Invoked when an object command for a slave interpreter is deleted;
cleans up all state associated with the slave interpreter and destroys
the slave interpreter. | static void | eval(Interp interp, Interp slaveInterp, int objIx, TclObject objv) ----------------------------------------------------------------------
slaveEval -> eval
Helper function to evaluate a command in a slave interpreter. | static void | expose(Interp interp, Interp slaveInterp, int objIx, TclObject objv) | static Interp | getSlave(Interp interp, TclObject slavePath) | static void | hidden(Interp interp, Interp slaveInterp) | static void | hide(Interp interp, Interp slaveInterp, int objIx, TclObject objv) | static void | invokeHidden(Interp interp, Interp slaveInterp, boolean global, int objIx, TclObject[] objv) | static void | markTrusted(Interp interp, Interp slaveInterp) |
debug | final static boolean debug(Code) | | |
cmdProc | public void cmdProc(Interp interp, TclObject[] objv) throws TclException(Code) | | ----------------------------------------------------------------------
SlaveObjCmd -> cmdProc
Command to manipulate an interpreter, e.g. to send commands to it
to be evaluated. One such command exists for each slave interpreter.
Results:
A standard Tcl result.
Side effects:
See user documentation for details.
----------------------------------------------------------------------
|
create | static Interp create(Interp interp, TclObject path, boolean safe) throws TclException(Code) | | ----------------------------------------------------------------------
slaveCreate -> create
Helper function to do the actual work of creating a slave interp
and new object command. Also optionally makes the new slave
interpreter "safe".
Results:
Returns the new Tcl_Interp * if successful or NULL if not. If failed,
the result of the invoking interpreter contains an error message.
Side effects:
Creates a new slave interpreter and a new object command.
----------------------------------------------------------------------
|
disposeAssocData | public void disposeAssocData(Interp interp)(Code) | | |
disposeCmd | public void disposeCmd()(Code) | | ----------------------------------------------------------------------
disposeCmd --
Invoked when an object command for a slave interpreter is deleted;
cleans up all state associated with the slave interpreter and destroys
the slave interpreter.
Results:
None.
Side effects:
Cleans up all state associated with the slave interpreter and
destroys the slave interpreter.
----------------------------------------------------------------------
|
eval | static void eval(Interp interp, Interp slaveInterp, int objIx, TclObject objv) throws TclException(Code) | | ----------------------------------------------------------------------
slaveEval -> eval
Helper function to evaluate a command in a slave interpreter.
Results:
None.
Side effects:
Whatever the command does.
----------------------------------------------------------------------
|
|
|