|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.QueryPart
mondrian.olap.ExpBase
mondrian.mdx.ParameterExpr
public class ParameterExpr
MDX expression which is a usage of a Parameter.
| Constructor Summary | |
|---|---|
ParameterExpr(Parameter parameter)
|
|
| Method Summary | |
|---|---|
Calc |
accept(ExpCompiler compiler)
Converts this expression into an a tree of expressions which can be efficiently evaluated. |
Object |
accept(MdxVisitor visitor)
Accepts a visitor to this Exp. |
Exp |
accept(Validator validator)
Validates this expression. |
ParameterExpr |
clone()
|
boolean |
equals(Object other)
Returns whether this parameter is equal to another, based upon name, type and value |
int |
getCategory()
Returns the Category of the expression. |
Object[] |
getChildren()
Returns an array of the object's children. |
Parameter |
getParameter()
Returns the parameter used by this expression. |
Type |
getType()
Returns the type of this expression. |
int |
hashCode()
|
boolean |
isModifiable()
Returns whether the parameter can be modified. |
void |
unparse(PrintWriter pw)
Unparses the definition of this Parameter. |
| Methods inherited from class mondrian.olap.ExpBase |
|---|
cloneArray, getTypes, unparseList |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterExpr(Parameter parameter)
| Method Detail |
|---|
public Type getType()
Exp
public int getCategory()
ExpCategory of the expression.
public Exp accept(Validator validator)
Exp
validator - Validator contains validation context
public Calc accept(ExpCompiler compiler)
Exp
accept in interface Expaccept in class ExpBasepublic Object accept(MdxVisitor visitor)
ExpMdxVisitor.visit(mondrian.olap.Query) method appropriate to the type of expression.
visitor - Visitorpublic ParameterExpr clone()
clone in interface Expclone in class ExpBasepublic void unparse(PrintWriter pw)
The first usage of a parameter in a query becomes a call to the
Parameter(paramName, description, defaultValue)
function, and subsequent usages become calls to
ParamRef(paramName)
unparse in interface Expunparse in class QueryPartpw - PrintWriterpublic Object[] getChildren()
WalkableWalkable are ignored.
getChildren in interface WalkablegetChildren in class QueryPartpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean isModifiable()
public Parameter getParameter()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||