Class ForLoop

java.lang.Object
com.hubspot.jinjava.util.ForLoop
All Implemented Interfaces:
Iterator<Object>

public class ForLoop extends Object implements Iterator<Object>
  • Constructor Details

    • ForLoop

      public ForLoop(Iterator<?> ite, int len)
    • ForLoop

      public ForLoop(Iterator<?> ite)
  • Method Details

    • next

      public Object next()
      Specified by:
      next in interface Iterator<Object>
    • getIndex

      public int getIndex()
    • getIndex0

      public int getIndex0()
    • getDepth

      public int getDepth()
    • getDepth0

      public int getDepth0()
    • getCounter

      public int getCounter()
    • getRevindex

      public int getRevindex()
    • getRevindex0

      public int getRevindex0()
    • getRevcounter

      public int getRevcounter()
    • getLength

      public int getLength()
    • isFirst

      public boolean isFirst()
    • isLast

      public boolean isLast()
    • isContinued

      public boolean isContinued()
    • doContinue

      public void doContinue()
    • doBreak

      public void doBreak()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Object>
    • cycle

      public Object cycle(Object... items)
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<Object>
    • toString

      public String toString()
      Overrides:
      toString in class Object