tcl.lang.cmd
Class InterpSlaveCmd

java.lang.Object
  extended by tcl.lang.cmd.InterpSlaveCmd
All Implemented Interfaces:
AssocData, Command, CommandWithDispose

public class InterpSlaveCmd
extends Object
implements CommandWithDispose, AssocData

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.


Constructor Summary
InterpSlaveCmd()
           
 
Method Summary
 void cmdProc(Interp interp, TclObject[] objv)
          Command to manipulate an interpreter, e.g.
 void disposeAssocData(Interp interp)
          Invoked when an interpreter is being deleted.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpSlaveCmd

public InterpSlaveCmd()
Method Detail

cmdProc

public void cmdProc(Interp interp,
                    TclObject[] objv)
             throws TclException
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 results

Specified by:
cmdProc in interface Command
Parameters:
interp - The interpreter for setting the results and which contains the context
objv - the argument list for the command; objv[0[ is the command name itself
Throws:
TclException - on any errors

disposeCmd

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. Results: None. Side effects: Cleans up all state associated with the slave interpreter and destroys the slave interpreter. ----------------------------------------------------------------------

Specified by:
disposeCmd in interface CommandWithDispose

disposeAssocData

public void disposeAssocData(Interp interp)
Invoked when an interpreter is being deleted. It releases all storage used by the master/slave/safe interpreter facilities. Results: None. Side effects: Cleans up storage. Sets the interpInfoPtr field of the interp to NULL.

Specified by:
disposeAssocData in interface AssocData
Parameters:
interp - the interpreter in which this AssocData instance is registered in


Copyright © 2015. All rights reserved.