tcl.lang.cmd
Class LappendCmd

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

public class LappendCmd
extends Object
implements Command

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


Constructor Summary
LappendCmd()
           
 
Method Summary
 void cmdProc(Interp interp, TclObject[] objv)
          Tcl_LappendObjCmd -> LappendCmd.cmdProc This procedure is invoked to process the "lappend" Tcl command.
static TclObject lappendVar(Interp interp, String varName, TclObject[] values, int valuesInd)
          Append values to a list value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LappendCmd

public LappendCmd()
Method Detail

cmdProc

public void cmdProc(Interp interp,
                    TclObject[] objv)
             throws TclException
Tcl_LappendObjCmd -> LappendCmd.cmdProc This procedure is invoked to process the "lappend" 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 - on any errors

lappendVar

public static TclObject lappendVar(Interp interp,
                                   String varName,
                                   TclObject[] values,
                                   int valuesInd)
                            throws TclException
Append values to a list value

Parameters:
interp - current interpreter
varName - name of variable
values - TclObject values to append
valuesInd - index of values to start at
Returns:
new value for variable
Throws:
TclException


Copyright © 2015. All rights reserved.