| java.lang.Object tcl.lang.InterpAliasCmd
InterpAliasCmd | class InterpAliasCmd implements CommandWithDispose(Code) | | This class implements the alias commands, which are created
in response to the built-in "interp alias" command in Tcl.
|
Method Summary | |
public void | cmdProc(Interp interp, TclObject[] argv) ----------------------------------------------------------------------
AliasObjCmd -> cmdProc
This is the procedure that services invocations of aliases in a
slave interpreter. | static void | create(Interp interp, Interp slaveInterp, Interp masterInterp, TclObject name, TclObject targetName, int objIx, TclObject[] objv) ----------------------------------------------------------------------
AliasCreate -> create
Helper function to do the work to actually create an alias. | static void | delete(Interp interp, Interp slaveInterp, TclObject name) ----------------------------------------------------------------------
AliasDelete -> delete
Deletes the given alias from the slave interpreter given. | static void | describe(Interp interp, Interp slaveInterp, TclObject name) | public void | disposeCmd() ----------------------------------------------------------------------
AliasObjCmdDeleteProc -> disposeCmd
Is invoked when an alias command is deleted in a slave. | WrappedCommand | getTargetCmd(Interp interp) ----------------------------------------------------------------------
getTargetCmd --
helper function, that returns the WrappedCommand of the target
command (i.e. | static Interp | getTargetInterp(Interp slaveInterp, String aliasName) ----------------------------------------------------------------------
getTargetInterp --
static helper function, that returns the target interpreter of
an alias with the given name in the given slave interpreter. | static void | list(Interp interp, Interp slaveInterp) ----------------------------------------------------------------------
AliasList -> list
Computes a list of aliases defined in a slave interpreter. |
cmdProc | public void cmdProc(Interp interp, TclObject[] argv) throws TclException(Code) | | ----------------------------------------------------------------------
AliasObjCmd -> cmdProc
This is the procedure that services invocations of aliases in a
slave interpreter. One such command exists for each alias. When
invoked, this procedure redirects the invocation to the target
command in the master interpreter as designated by the Alias
record associated with this command.
Results:
A standard Tcl result.
Side effects:
Causes forwarding of the invocation; all possible side effects
may occur as a result of invoking the command to which the
invocation is forwarded.
----------------------------------------------------------------------
|
create | static void create(Interp interp, Interp slaveInterp, Interp masterInterp, TclObject name, TclObject targetName, int objIx, TclObject[] objv) throws TclException(Code) | | ----------------------------------------------------------------------
AliasCreate -> create
Helper function to do the work to actually create an alias.
Results:
A standard Tcl result.
Side effects:
An alias command is created and entered into the alias table
for the slave interpreter.
----------------------------------------------------------------------
|
delete | static void delete(Interp interp, Interp slaveInterp, TclObject name) throws TclException(Code) | | ----------------------------------------------------------------------
AliasDelete -> delete
Deletes the given alias from the slave interpreter given.
Results:
A standard Tcl result.
Side effects:
Deletes the alias from the slave interpreter.
----------------------------------------------------------------------
|
disposeCmd | public void disposeCmd()(Code) | | ----------------------------------------------------------------------
AliasObjCmdDeleteProc -> disposeCmd
Is invoked when an alias command is deleted in a slave. Cleans up
all storage associated with this alias.
Results:
None.
Side effects:
Deletes the alias record and its entry in the alias table for
the interpreter.
----------------------------------------------------------------------
|
getTargetCmd | WrappedCommand getTargetCmd(Interp interp) throws TclException(Code) | | ----------------------------------------------------------------------
getTargetCmd --
helper function, that returns the WrappedCommand of the target
command (i.e. the command which is called in the master interpreter).
Results:
The wrapped command.
Side effects:
None.
----------------------------------------------------------------------
|
getTargetInterp | static Interp getTargetInterp(Interp slaveInterp, String aliasName)(Code) | | ----------------------------------------------------------------------
getTargetInterp --
static helper function, that returns the target interpreter of
an alias with the given name in the given slave interpreter.
Results:
The target interpreter, or null if no alias was found.
Side effects:
None.
----------------------------------------------------------------------
|
list | static void list(Interp interp, Interp slaveInterp) throws TclException(Code) | | ----------------------------------------------------------------------
AliasList -> list
Computes a list of aliases defined in a slave interpreter.
Results:
A standard Tcl result.
Side effects:
None.
----------------------------------------------------------------------
|
|
|