mondrian.calc.impl
Class BetterExpCompiler
java.lang.Object
mondrian.calc.impl.AbstractExpCompiler
mondrian.calc.impl.BetterExpCompiler
- All Implemented Interfaces:
- ExpCompiler
public class BetterExpCompiler
- extends AbstractExpCompiler
Enhanced expression compiler. It can generate code to convert between
scalar types.
- Since:
- Sep 29, 2005
- Author:
- jhyde
-
-
Methods inherited from class mondrian.calc.impl.AbstractExpCompiler |
compile, compileAs, compileBoolean, compileDateTime, compileDimension, compileHierarchy, compileInteger, compileIter, compileLevel, compileList, compileMember, compileScalar, compileString, getAcceptableResultStyles, getEvaluator, getValidator, registerParameter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BetterExpCompiler
public BetterExpCompiler(Evaluator evaluator,
Validator validator)
BetterExpCompiler
public BetterExpCompiler(Evaluator evaluator,
Validator validator,
List<ResultStyle> resultStyles)
compileDouble
public DoubleCalc compileDouble(Exp exp)
- Description copied from interface:
ExpCompiler
- Compiles an expression which yields a
double
result.
- Specified by:
compileDouble
in interface ExpCompiler
- Overrides:
compileDouble
in class AbstractExpCompiler
- Parameters:
exp
- Expression
- Returns:
- Calculator which yields a double
compileTuple
public TupleCalc compileTuple(Exp exp)
- Description copied from interface:
ExpCompiler
- Compiles an expression which yields a tuple result.
- Specified by:
compileTuple
in interface ExpCompiler
- Overrides:
compileTuple
in class AbstractExpCompiler
- Parameters:
exp
- Expression
- Returns:
- Calculator which yields a tuple
compileList
public ListCalc compileList(Exp exp,
boolean mutable)
- Description copied from interface:
ExpCompiler
- Compiles an expression which yields
List
result.
Such an expression is generally a list of Member
objects or a
list of tuples (each represented by a Member
array).
See ExpCompiler.compileList(mondrian.olap.Exp)
.
- Specified by:
compileList
in interface ExpCompiler
- Overrides:
compileList
in class AbstractExpCompiler
- Parameters:
exp
- Expressionmutable
- Whether resulting list is mutable