de.projectory.koivima.operators
Class ForEach
java.lang.Object
de.projectory.koivima.core.Element
de.projectory.koivima.core.Operator
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: ... => ...
Fields inherited from class de.projectory.koivima.core.Element |
context |
Method Summary |
void |
execute()
Executes this element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ForEach
public ForEach()
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