tcl.lang.cmd
Class ProcCmd

java.lang.Object
  extended by tcl.lang.cmd.ProcCmd
All Implemented Interfaces:
Command

public class ProcCmd
extends Object
implements Command

This class implements the built-in "proc" command in Tcl.


Nested Class Summary
static class ProcCmd.FindCommandNamespaceResult
           
 
Constructor Summary
ProcCmd()
           
 
Method Summary
 void cmdProc(Interp interp, TclObject[] objv)
          Tcl_ProcObjCmd -> ProcCmd.cmdProc Creates a new Tcl procedure.
static ProcCmd.FindCommandNamespaceResult FindCommandNamespace(Interp interp, String fullName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcCmd

public ProcCmd()
Method Detail

cmdProc

public void cmdProc(Interp interp,
                    TclObject[] objv)
             throws TclException
Tcl_ProcObjCmd -> ProcCmd.cmdProc Creates a new Tcl procedure.

Specified by:
cmdProc in interface Command
Parameters:
interp - the current interpreter.
objv - command arguments.
Throws:
TclException - If incorrect number of arguments.

FindCommandNamespace

public static ProcCmd.FindCommandNamespaceResult FindCommandNamespace(Interp interp,
                                                                      String fullName)
                                                               throws TclException
Throws:
TclException


Copyright © 2015. All rights reserved.