|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.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()
Exp
Category
of the expression.
public Exp accept(Validator validator)
Exp
validator
- Validator contains validation context
public Calc accept(ExpCompiler compiler)
Exp
accept
in interface Exp
accept
in class ExpBase
public Object accept(MdxVisitor visitor)
Exp
MdxVisitor.visit(mondrian.olap.Query)
method appropriate to the type of expression.
visitor
- Visitorpublic ParameterExpr clone()
clone
in interface Exp
clone
in class ExpBase
public 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 Exp
unparse
in class QueryPart
pw
- PrintWriterpublic Object[] getChildren()
Walkable
Walkable
are ignored.
getChildren
in interface Walkable
getChildren
in class QueryPart
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isModifiable()
public Parameter getParameter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |