tcl.lang
Class JavaForCmd

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

public class JavaForCmd
extends java.lang.Object
implements Command

This class implements the built-in "java::for" command. This command is semantically equivalent to the enhanced Java for statement in JDK 1.5 and newer. It is used to iterate over Collections and can also be used for arrays.


Constructor Summary
JavaForCmd()
           
 
Method Summary
 void cmdProc(Interp interp, TclObject[] objv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaForCmd

public JavaForCmd()
Method Detail

cmdProc

public void cmdProc(Interp interp,
                    TclObject[] objv)
             throws TclException
Specified by:
cmdProc in interface Command
Throws:
TclException