Class ForStatement

java.lang.Object
dev.frostlake.executor.procedural.Statement
dev.frostlake.executor.procedural.ForStatement

public class ForStatement extends Statement
  • Constructor Details

  • Method Details

    • getVariableName

      public String getVariableName()
    • getIterable

      public BaseExpression getIterable()
    • getToExpression

      public BaseExpression getToExpression()
      The range's end expression, or null for a cursor/list FOR.
    • isRange

      public boolean isRange()
      True for FOR i IN start TO end (integer range); false for cursor/list iteration.
    • isReverse

      public boolean isReverse()
      True for FOR i IN REVERSE start TO end — iterate from end down to start.
    • getBlock

      public ProceduralBlock getBlock()