Class AbstractListCalc

    • Constructor Detail

      • AbstractListCalc

        protected AbstractListCalc​(Exp exp,
                                   Calc[] calcs)
        Creates an abstract implementation of a compiled expression which returns a mutable list of tuples.
        Parameters:
        exp - Expression which was compiled
        calcs - List of child compiled expressions (for dependency analysis)
      • AbstractListCalc

        protected AbstractListCalc​(Exp exp,
                                   Calc[] calcs,
                                   boolean mutable)
        Creates an abstract implementation of a compiled expression which returns a list.
        Parameters:
        exp - Expression which was compiled
        calcs - List of child compiled expressions (for dependency analysis)
        mutable - Whether the list is mutable
    • Method Detail

      • evaluate

        public final Object evaluate​(Evaluator evaluator)
        Description copied from interface: Calc
        Evaluates this expression.
        Specified by:
        evaluate in interface Calc
        Parameters:
        evaluator - Provides dimensional context in which to evaluate this expression
        Returns:
        Result of expression evaluation
      • evaluateIterable

        public TupleIterable evaluateIterable​(Evaluator evaluator)
        Description copied from interface: IterCalc
        Evaluates an expression to yield an Iterable of members or tuples.

        The Iterable is immutable.

        Specified by:
        evaluateIterable in interface IterCalc
        Parameters:
        evaluator - Evaluation context
        Returns:
        An Iterable of members or tuples, never null.