tcl.lang.cmd
Class ExprCmd

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

public class ExprCmd
extends Object
implements Command

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


Constructor Summary
ExprCmd()
           
 
Method Summary
 void cmdProc(Interp interp, TclObject[] argv)
          Evaluates a Tcl expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExprCmd

public ExprCmd()
Method Detail

cmdProc

public void cmdProc(Interp interp,
                    TclObject[] argv)
             throws TclException
Evaluates a Tcl expression. See Tcl user documentation for details.

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


Copyright © 2015. All rights reserved.