Class ForStatement
java.lang.Object
dev.frostlake.executor.procedural.Statement
dev.frostlake.executor.procedural.ForStatement
-
Constructor Summary
ConstructorsConstructorDescriptionForStatement(String variableName, BaseExpression iterable, BaseExpression toExpression, boolean reverse, ProceduralBlock block) ForStatement(String variableName, BaseExpression iterable, ProceduralBlock block) -
Method Summary
Methods inherited from class dev.frostlake.executor.procedural.Statement
getLabel, getSourceLine, getSourcePosition, getType, setLabel, setSourcePosition
-
Constructor Details
-
ForStatement
-
ForStatement
public ForStatement(String variableName, BaseExpression iterable, BaseExpression toExpression, boolean reverse, ProceduralBlock block)
-
-
Method Details
-
getVariableName
-
getIterable
-
getToExpression
The range's end expression, or null for a cursor/list FOR. -
isRange
public boolean isRange()True forFOR i IN start TO end(integer range); false for cursor/list iteration. -
isReverse
public boolean isReverse()True forFOR i IN REVERSE start TO end— iterate from end down to start. -
getBlock
-