Package mondrian.olap
Interface Exp
- All Known Subinterfaces:
FunCall
- All Known Implementing Classes:
DimensionExpr
,DummyExp
,ExpBase
,HierarchyExpr
,Id
,LevelExpr
,Literal
,MemberExpr
,NamedSetExpr
,ParameterExpr
,ResolvedFunCall
,UnresolvedFunCall
public interface Exp
An
Exp
is an MDX expression.- Since:
- 1.0
- Author:
- jhyde, 20 January, 1999
-
Method Summary
Modifier and TypeMethodDescriptionaccept
(ExpCompiler compiler) Converts this expression into an a tree of expressions which can be efficiently evaluated.accept
(MdxVisitor visitor) Accepts a visitor to this Exp.Validates this expression.clone()
int
Returns theCategory
of the expression.getType()
Returns the type of this expression.void
unparse
(PrintWriter pw) Writes the MDX representation of this expression to a print writer.
-
Method Details
-
clone
Exp clone() -
getCategory
int getCategory()Returns theCategory
of the expression. -
getType
Type getType()Returns the type of this expression. Never null. -
unparse
Writes the MDX representation of this expression to a print writer. Sub-expressions are invoked recursively.- Parameters:
pw
- PrintWriter
-
accept
Validates this expression. The validator acts in the role of 'visitor' (see Gang of Four 'visitor pattern'), and an expression in the role of 'visitee'.- Parameters:
validator
- Validator contains validation context- Returns:
- The validated expression; often but not always the same as this expression
-
accept
Converts this expression into an a tree of expressions which can be efficiently evaluated.- Parameters:
compiler
-- Returns:
- A compiled expression
-
accept
Accepts a visitor to this Exp. The implementation should generally dispatches to theMdxVisitor.visit(mondrian.olap.Query)
method appropriate to the type of expression.- Parameters:
visitor
- Visitor
-