public class ForeachStatement extends Statement
Modifier and Type | Field and Description |
---|---|
protected Statement |
_block |
protected boolean |
_isRef |
protected AbstractVarExpr |
_key |
protected java.lang.String |
_label |
protected Expr |
_objExpr |
protected AbstractVarExpr |
_value |
BREAK_FALL_THROUGH, FALL_THROUGH, RETURN
Constructor and Description |
---|
ForeachStatement(Location location,
Expr objExpr,
AbstractVarExpr key,
AbstractVarExpr value,
boolean isRef,
Statement block,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
Value |
execute(Env env) |
boolean |
isLoop() |
fallThrough, getLocation, getParent, rethrow, rethrow, setParent, toString
protected final Expr _objExpr
protected final AbstractVarExpr _key
protected final AbstractVarExpr _value
protected final boolean _isRef
protected final Statement _block
protected final java.lang.String _label
public ForeachStatement(Location location, Expr objExpr, AbstractVarExpr key, AbstractVarExpr value, boolean isRef, Statement block, java.lang.String label)