Class EvaluatingIterator<T>

java.lang.Object
com.github.basking2.sdsai.itrex.iterators.EvaluatingIterator<T>
All Implemented Interfaces:
Iterator<T>

public class EvaluatingIterator<T> extends Object implements Iterator<T>
  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

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

      public T next(EvaluationContext evaluationContext)
    • setEvaluationEnabled

      public void setEvaluationEnabled(boolean evaluationEnabled)
      Set whether this iterator should map objects through its evaluator or not.
      Parameters:
      evaluationEnabled - Enable or disable evlaution using this iterator's Evaluator.
    • skip

      public void skip()
      Advance the iterator without evaluating it. This is useful for conditional executions, such is ["if"].
    • getEvaluationContext

      public EvaluationContext getEvaluationContext()