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 Detail

      • index

        protected int index
      • hasNext

        protected boolean hasNext
    • Constructor Detail

      • ForeachScope

        public ForeachScope​(Object owner,
                            Object replaces)
    • Method Detail

      • 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()