tcl.lang.cmd
Class IncrCmd

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

public class IncrCmd
extends Object
implements Command

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


Constructor Summary
IncrCmd()
           
 
Method Summary
 void cmdProc(Interp interp, TclObject[] objv)
          This procedure is invoked to process the "incr" Tcl command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrCmd

public IncrCmd()
Method Detail

cmdProc

public void cmdProc(Interp interp,
                    TclObject[] objv)
             throws TclException
This procedure is invoked to process the "incr" Tcl command. See the user documentation for details on what it does.

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 - if wrong # of args or increment is not an integer.


Copyright © 2015. All rights reserved.