Package mondrian.mdx
Class MemberExpr
- java.lang.Object
-
- mondrian.olap.QueryPart
-
- mondrian.olap.ExpBase
-
- mondrian.mdx.MemberExpr
-
-
Constructor Summary
Constructors Constructor Description MemberExpr(Member member)
Creates a member expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Calc
accept(ExpCompiler compiler)
Converts this expression into an a tree of expressions which can be efficiently evaluated.java.lang.Object
accept(MdxVisitor visitor)
Accepts a visitor to this Exp.Exp
accept(Validator validator)
Validates this expression.MemberExpr
clone()
int
getCategory()
Returns theCategory
of the expression.Member
getMember()
Returns the member.Type
getType()
Returns the type of this expression.java.lang.String
toString()
-
Methods inherited from class mondrian.olap.ExpBase
cloneArray, getTypes, unparseList
-
Methods inherited from class mondrian.olap.QueryPart
explain, getChildren, unparse
-
-
-
-
Constructor Detail
-
MemberExpr
public MemberExpr(Member member)
Creates a member expression.- Parameters:
member
- Member- Pre-condition:
- member != null
-
-
Method Detail
-
getMember
public Member getMember()
Returns the member.- Post-condition:
- return != null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public Type getType()
Description copied from interface:Exp
Returns the type of this expression. Never null.
-
clone
public MemberExpr clone()
-
getCategory
public int getCategory()
Description copied from interface:Exp
Returns theCategory
of the expression.- Specified by:
getCategory
in interfaceExp
-
accept
public Exp accept(Validator validator)
Description copied from interface:Exp
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'.
-
accept
public Calc accept(ExpCompiler compiler)
Description copied from interface:Exp
Converts this expression into an a tree of expressions which can be efficiently evaluated.
-
accept
public java.lang.Object accept(MdxVisitor visitor)
Description copied from interface:Exp
Accepts a visitor to this Exp. The implementation should generally dispatches to theMdxVisitor.visit(mondrian.olap.Query)
method appropriate to the type of expression.
-
-