|
|||||||||
| 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.ResolvedFunCall
public final class ResolvedFunCall
A ResolvedFunCall is a function applied to a list of operands,
which has been validated and resolved to a
function definition.
| Constructor Summary | |
|---|---|
ResolvedFunCall(FunDef funDef,
Exp[] args,
Type returnType)
Creates a function call. |
|
| 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. |
ResolvedFunCall |
clone()
|
Exp |
getArg(int index)
Returns the Exp argument at the specified index. |
int |
getArgCount()
Returns the number of arguments. |
Exp[] |
getArgs()
Returns the internal array of Exp arguments. |
int |
getCategory()
Returns the Category of the expression. |
Object[] |
getChildren()
Returns an array of the object's children. |
FunDef |
getFunDef()
Returns the definition of the function which is being called. |
String |
getFunName()
Returns the name of the function. |
Syntax |
getSyntax()
Returns the syntax of the call. |
Type |
getType()
Returns the type of this expression. |
String |
toString()
|
void |
unparse(PrintWriter pw)
Writes a string representation of this parse tree node to the given writer. |
| Methods inherited from class mondrian.olap.ExpBase |
|---|
cloneArray, getTypes, unparseList |
| Methods inherited from class mondrian.olap.QueryPart |
|---|
explain |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResolvedFunCall(FunDef funDef,
Exp[] args,
Type returnType)
funDef - Function definitionargs - ArgumentsreturnType - Return type| Method Detail |
|---|
public String toString()
toString in class Objectpublic ResolvedFunCall clone()
clone in interface Expclone in class ExpBasepublic Exp getArg(int index)
getArg in interface FunCallindex - the index of the Exp.
0.getArgs()public Exp[] getArgs()
Note: this does NOT do a copy.
getArgs in interface FunCallpublic final int getArgCount()
getArgCount in interface FunCallgetArgs()public String getFunName()
FunCall
getFunName in interface FunCallpublic Syntax getSyntax()
FunCall
getSyntax in interface FunCallpublic Object[] getChildren()
WalkableWalkable are ignored.
getChildren in interface WalkablegetChildren in class QueryPartpublic FunDef getFunDef()
public final int getCategory()
ExpCategory of the expression.
getCategory in interface Exppublic final Type getType()
Exp
getType in interface Exppublic Exp accept(Validator validator)
Exp
accept in interface Expvalidator - Validator contains validation context
public void unparse(PrintWriter pw)
QueryPart
unparse in interface Expunparse in class QueryPartpw - writerpublic 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.
accept in interface Expvisitor - Visitor
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||