|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.calc.impl.AbstractCalc
mondrian.calc.impl.GenericCalc
public abstract class GenericCalc
Adapter which computes an expression and converts it to any required type.
| Field Summary |
|---|
| Fields inherited from class mondrian.calc.impl.AbstractCalc |
|---|
exp, type |
| Constructor Summary | |
|---|---|
protected |
GenericCalc(Exp exp)
|
| Method Summary | |
|---|---|
boolean |
evaluateBoolean(Evaluator evaluator)
Evaluates this expression to yield a boolean value. |
Date |
evaluateDateTime(Evaluator evaluator)
Evaluates this expression to yield a Date value. |
Dimension |
evaluateDimension(Evaluator evaluator)
Evaluates this expression to yield a dimension. |
double |
evaluateDouble(Evaluator evaluator)
Evaluates this expression to yield a double value. |
Hierarchy |
evaluateHierarchy(Evaluator evaluator)
Evaluates this expression to yield a hierarchy. |
int |
evaluateInteger(Evaluator evaluator)
Evaluates this expression to yield an int value. |
Iterable |
evaluateIterable(Evaluator evaluator)
Evaluates an expression to yield an Iterable of members or tuples. |
Level |
evaluateLevel(Evaluator evaluator)
Evaluates this expression to yield a level. |
List |
evaluateList(Evaluator evaluator)
Evaluates an expression to yield a list of members or tuples. |
Member |
evaluateMember(Evaluator evaluator)
Evaluates this expression to yield a member. |
String |
evaluateString(Evaluator evaluator)
Evaluates this expression to yield a String value. |
Member[] |
evaluateTuple(Evaluator evaluator)
Evaluates this expression to yield a tuple. |
void |
evaluateVoid(Evaluator evaluator)
|
static double |
numberToDouble(Number number)
|
| 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 |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn, evaluate, getResultStyle, getType |
| Constructor Detail |
|---|
protected GenericCalc(Exp exp)
| Method Detail |
|---|
public List evaluateList(Evaluator evaluator)
ListCalcThe list is immutable if Calc.getResultStyle() yields
ResultStyle.MUTABLE_LIST. Otherwise,
the caller must not modify the list.
evaluateList in interface ListCalcevaluator - Evaluation context
public Iterable evaluateIterable(Evaluator evaluator)
IterCalcThe Iterable is immutable.
evaluateIterable in interface IterCalcevaluator - Evaluation context
public Member[] evaluateTuple(Evaluator evaluator)
TupleCalcA tuple cannot contain any null members. If any of the members is null, this method must return a null.
evaluateTuple in interface TupleCalcevaluator - Evaluation context
public String evaluateString(Evaluator evaluator)
StringCalcString value.
evaluateString in interface StringCalcevaluator - Evaluation context
public int evaluateInteger(Evaluator evaluator)
IntegerCalcint value.
If the result is null, returns the special
FunUtil.IntegerNull value.
evaluateInteger in interface IntegerCalcevaluator - Evaluation context
public double evaluateDouble(Evaluator evaluator)
DoubleCalcdouble value.
If the result is null, returns the special
FunUtil.DoubleNull value.
evaluateDouble in interface DoubleCalcevaluator - Evaluation context
public static double numberToDouble(Number number)
public boolean evaluateBoolean(Evaluator evaluator)
BooleanCalcboolean value.
If the result is null, returns the special
FunUtil.BooleanNull value.
evaluateBoolean in interface BooleanCalcevaluator - Evaluation context
public Date evaluateDateTime(Evaluator evaluator)
DateTimeCalcDate value.
evaluateDateTime in interface DateTimeCalcevaluator - Evaluation context
public void evaluateVoid(Evaluator evaluator)
evaluateVoid in interface VoidCalcpublic Member evaluateMember(Evaluator evaluator)
MemberCalcMay return the null member (see
Hierarchy.getNullMember()) but never null.
evaluateMember in interface MemberCalcevaluator - Evaluation context
public Level evaluateLevel(Evaluator evaluator)
LevelCalcNever returns null.
evaluateLevel in interface LevelCalcevaluator - Evaluation context
public Hierarchy evaluateHierarchy(Evaluator evaluator)
HierarchyCalcNever returns null.
evaluateHierarchy in interface HierarchyCalcevaluator - Evaluation context
public Dimension evaluateDimension(Evaluator evaluator)
DimensionCalcNever returns null.
evaluateDimension in interface DimensionCalcevaluator - Evaluation context
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||