Class AbstractVoidCalc

All Implemented Interfaces:
BooleanCalc, Calc, DateTimeCalc, DimensionCalc, DoubleCalc, HierarchyCalc, IntegerCalc, LevelCalc, MemberCalc, StringCalc, TupleCalc, VoidCalc

public class AbstractVoidCalc extends GenericCalc implements VoidCalc
Abstract implementation of the VoidCalc interface.

The derived class must implement the GenericCalc.evaluateVoid(mondrian.olap.Evaluator) method, and the evaluate(mondrian.olap.Evaluator) method will call it and return null.

Since:
Sep 29, 2005
Author:
jhyde
  • Constructor Details

    • AbstractVoidCalc

      protected AbstractVoidCalc(Exp exp, Calc[] calcs)
  • Method Details

    • evaluate

      public 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
    • getCalcs

      public Calc[] getCalcs()
      Description copied from class: AbstractCalc
      Returns this expression's child expressions.
      Overrides:
      getCalcs in class AbstractCalc