sleep.engine.atoms
Class Foreach

java.lang.Object
  extended bysleep.engine.Step
      extended bysleep.engine.atoms.Foreach
All Implemented Interfaces:
Serializable

public class Foreach
extends Step

See Also:
Serialized Form

Field Summary
 Block code
           
 Block source
           
 String value
           
 
Fields inherited from class sleep.engine.Step
line, next
 
Constructor Summary
Foreach(Block _source, String _value, Block _code)
           
 
Method Summary
 Scalar evaluate(ScriptEnvironment e)
          evaluate this atomic step.
 String toString(String prefix)
          returns a string representation of this atomic step
 
Methods inherited from class sleep.engine.Step
getLineNumber, setInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

public Block source

value

public String value

code

public Block code
Constructor Detail

Foreach

public Foreach(Block _source,
               String _value,
               Block _code)
Method Detail

toString

public String toString(String prefix)
Description copied from class: Step
returns a string representation of this atomic step

Overrides:
toString in class Step

evaluate

public Scalar evaluate(ScriptEnvironment e)
Description copied from class: Step
evaluate this atomic step.

Specified by:
evaluate in class Step