Class DirectiveNode.ForEachNode.ForEachVar

  • Enclosing class:
    DirectiveNode.ForEachNode

    private static class DirectiveNode.ForEachNode.ForEachVar
    extends java.lang.Object
    This class is the type of the variable $foreach that is defined within #foreach loops. Its getHasNext() method means that we can write #if ($foreach.hasNext).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Iterator<?> iterator  
    • Constructor Summary

      Constructors 
      Constructor Description
      ForEachVar​(java.util.Iterator<?> iterator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getHasNext()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • iterator

        private final java.util.Iterator<?> iterator
    • Constructor Detail

      • ForEachVar

        ForEachVar​(java.util.Iterator<?> iterator)
    • Method Detail

      • getHasNext

        public boolean getHasNext()