mondrian.calc.impl
Class AbstractDimensionCalc
java.lang.Object
mondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractDimensionCalc
- All Implemented Interfaces:
- Calc, DimensionCalc
- Direct Known Subclasses:
- HierarchyDimensionFunDef.CalcImpl
public abstract class AbstractDimensionCalc
- extends AbstractCalc
- implements DimensionCalc
Abstract implementation of the DimensionCalc
interface.
The derived class must
implement the DimensionCalc.evaluateDimension(mondrian.olap.Evaluator)
method,
and the evaluate(mondrian.olap.Evaluator)
method will call it.
- Since:
- Sep 26, 2005
- Author:
- jhyde
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDimensionCalc
protected AbstractDimensionCalc(Exp exp,
Calc[] calcs)
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.
- Specified by:
getCalcs
in class AbstractCalc