Class ContainerIterators.CollectIteratorEvaluator

    • Constructor Detail

      • CollectIteratorEvaluator

        CollectIteratorEvaluator​(BooleanValue condition)
        Creates a collect iterator evaluator.
        Parameters:
        condition - the boolean value that must be met by the iterated expression results
    • Method Detail

      • aggregate

        public BooleanValue aggregate​(EvaluationAccessor result,
                                      Value iter,
                                      EvaluationAccessor value,
                                      java.util.Map<java.lang.Object,​java.lang.Object> data)
                               throws ValueDoesNotMatchTypeException
        Description copied from interface: IIteratorEvaluator
        Aggregate value to result.
        Parameters:
        result - the aggregating result
        iter - the current value of the iterator
        value - the value to be aggregated
        data - arbitrary data to be hold while actually evaluating the function
        Returns:
        a boolean value to indicate whether iteration/evaluation shall stop (true if iteration shall stop due to this evaluation, false else), a collection of values as instance of ListWrapperValue where to go on
        Throws:
        ValueDoesNotMatchTypeException - in case of type compatibility problems