Package mondrian.mdx
Class ParameterExpr
java.lang.Object
mondrian.olap.QueryPart
mondrian.olap.ExpBase
mondrian.mdx.ParameterExpr
- All Implemented Interfaces:
Exp
MDX expression which is a usage of a
Parameter.- Author:
- jhyde
-
Constructor Summary
Constructors -
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()booleanReturns whether this parameter is equal to another, based upon name, type and valueintReturns theCategoryof the expression.Object[]Returns the parameter used by this expression.getType()Returns the type of this expression.inthashCode()booleanReturns whether the parameter can be modified.voidunparse(PrintWriter pw) Unparses the definition of this Parameter.Methods inherited from class mondrian.olap.ExpBase
cloneArray, getTypes, unparseList
-
Constructor Details
-
ParameterExpr
Creates a ParameterExpr.- Parameters:
parameter- Parameter
-
-
Method Details
-
getType
Description copied from interface:ExpReturns the type of this expression. Never null. -
getCategory
public int getCategory()Description copied from interface:ExpReturns theCategoryof the expression. -
accept
Description copied from interface:ExpValidates 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
Description copied from interface:ExpConverts this expression into an a tree of expressions which can be efficiently evaluated. -
accept
Description copied from interface:ExpAccepts 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
-
clone
-
unparse
Unparses the definition of this Parameter.The first usage of a parameter in a query becomes a call to the
Parameter(paramName, description, defaultValue)function, and subsequent usages become calls toParamRef(paramName) -
getChildren
- Overrides:
getChildrenin classQueryPart
-
equals
Returns whether this parameter is equal to another, based upon name, type and value -
hashCode
public int hashCode() -
isModifiable
public boolean isModifiable()Returns whether the parameter can be modified.- Returns:
- whether parameter can be modified
-
getParameter
Returns the parameter used by this expression.- Returns:
- parameter used by this expression
-