tcl.lang.cmd
Class NamespaceCmd

java.lang.Object
  extended by tcl.lang.cmd.NamespaceCmd
All Implemented Interfaces:
Command, InternalRep

public class NamespaceCmd
extends Object
implements InternalRep, Command

This class implements the built-in "namespace" command in Tcl. See the user documentation for details on what it does.


Constructor Summary
NamespaceCmd()
           
 
Method Summary
 void cmdProc(Interp interp, TclObject[] objv)
          This method implements the functionality of the command.
 void dispose()
           
 InternalRep duplicate()
           
static String tail(String qname)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceCmd

public NamespaceCmd()
Method Detail

cmdProc

public void cmdProc(Interp interp,
                    TclObject[] objv)
             throws TclException
Description copied from interface: Command
This method implements the functionality of the command. However, calling it directly in application code will bypass execution traces. Instead, commands should be called with WrappedCommand.invoke

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

tail

public static String tail(String qname)

dispose

public void dispose()
Specified by:
dispose in interface InternalRep

duplicate

public InternalRep duplicate()
Specified by:
duplicate in interface InternalRep

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All rights reserved.