de.projectory.koivima.operators
Class ForEach

java.lang.Object
  extended by de.projectory.koivima.core.Element
      extended by de.projectory.koivima.core.Operator
          extended by de.projectory.koivima.operators.ForEach

public class ForEach
extends Operator

Takes a list and a code block from the stack and evaluate the code for each list element. Stack: ... => ...


Field Summary
 
Fields inherited from class de.projectory.koivima.core.Element
context
 
Constructor Summary
ForEach()
           
 
Method Summary
 void execute()
          Executes this element.
 
Methods inherited from class de.projectory.koivima.core.Operator
pop, popDataElement, popInteger, popString, push, toString
 
Methods inherited from class de.projectory.koivima.core.Element
getExecutionContext, setExecutionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForEach

public ForEach()
Method Detail

execute

public void execute()
Description copied from class: Element
Executes this element. An operator usually removes some itmes from the data stack and operates on them. A variable just puts itself to the stack.

Specified by:
execute in class Element