sleep.engine.atoms

Class Iterate

Implemented Interfaces:
Serializable

public class Iterate
extends Step

Nested Class Summary

static class
Iterate.IteratorData

Field Summary

static int
ITERATOR_CREATE
static int
ITERATOR_DESTROY
static int
ITERATOR_NEXT
protected String
key
protected int
type
protected String
value

Fields inherited from class sleep.engine.Step

line, next

Constructor Summary

Iterate(String _key, String _value, int _type)

Method Summary

Scalar
evaluate(ScriptEnvironment e)
String
toString(String prefix)

Methods inherited from class sleep.engine.Step

evaluate, getHighLineNumber, getLineNumber, getLowLineNumber, setInfo, toString, toString

Field Details

ITERATOR_CREATE

public static final int ITERATOR_CREATE
Field Value:
1

ITERATOR_DESTROY

public static final int ITERATOR_DESTROY
Field Value:
2

ITERATOR_NEXT

public static final int ITERATOR_NEXT
Field Value:
3

key

protected String key

type

protected int type

value

protected String value

Constructor Details

Iterate

public Iterate(String _key,
               String _value,
               int _type)

Method Details

evaluate

public Scalar evaluate(ScriptEnvironment e)
Overrides:
evaluate in interface Step

toString

public String toString(String prefix)
Overrides:
toString in interface Step