mondrian.calc.impl
Class AbstractMemberCalc
java.lang.Object
mondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractMemberCalc
- All Implemented Interfaces:
- Calc, MemberCalc
- Direct Known Subclasses:
- HierarchyCurrentMemberFunDef.CalcImpl, HierarchyCurrentMemberFunDef.FixedCalcImpl
public abstract class AbstractMemberCalc
- extends AbstractCalc
- implements MemberCalc
Abstract implementation of the MemberCalc
interface.
The derived class must
implement the MemberCalc.evaluateMember(mondrian.olap.Evaluator)
method,
and the evaluate(mondrian.olap.Evaluator)
method will call it.
- Since:
- Sep 26, 2005
- Version:
- $Id: //open/mondrian/src/main/mondrian/calc/impl/AbstractMemberCalc.java#4 $
- Author:
- jhyde
Methods inherited from class mondrian.calc.impl.AbstractCalc |
accept, anyDepends, anyDependsButFirst, butDepends, dependsOn, getArguments, getCalcs, getName, getResultStyle, getType, simplifyEvaluator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMemberCalc
protected AbstractMemberCalc(Exp exp,
Calc[] calcs)
- Creates an AbstractMemberCalc.
- Parameters:
exp
- Source expressioncalcs
- Child compiled expressions
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