Class AbstractDoubleCalc

java.lang.Object
mondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractDoubleCalc
All Implemented Interfaces:
Calc, DoubleCalc

public abstract class AbstractDoubleCalc extends AbstractCalc implements DoubleCalc
Abstract implementation of the DoubleCalc interface.

The derived class must implement the DoubleCalc.evaluateDouble(mondrian.olap.Evaluator) method, and the evaluate(mondrian.olap.Evaluator) method will call it.

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

    • AbstractDoubleCalc

      protected AbstractDoubleCalc(Exp exp, Calc[] calcs)
      Creates an AbstractDoubleCalc.
      Parameters:
      exp - Source expression
      calcs - Child compiled expressions
  • 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