Class ForeachScope

All Implemented Interfaces:
Map<Object,Object>

public class ForeachScope extends Scope
This represents scoping and metadata for #foreach, adding index, count, hasNext, isFirst and isLast info.
Version:
$Id$
Author:
Nathan Bubna
  • Field Details

    • index

      protected int index
    • hasNext

      protected boolean hasNext
  • Constructor Details

    • ForeachScope

      public ForeachScope(Object owner, Object replaces)
  • Method Details

    • getIndex

      public int getIndex()
    • getCount

      public int getCount()
    • hasNext

      public boolean hasNext()
    • getHasNext

      public boolean getHasNext()
    • isFirst

      public boolean isFirst()
    • getFirst

      public boolean getFirst()
    • isLast

      public boolean isLast()
    • getLast

      public boolean getLast()