Package mondrian.mdx
Class ResolvedFunCall
java.lang.Object
mondrian.olap.QueryPart
mondrian.olap.ExpBase
mondrian.mdx.ResolvedFunCall
A
ResolvedFunCall is a function applied to a list of operands,
which has been validated and resolved to a
function definition.- Since:
- Jan 6, 2006
- Author:
- jhyde
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedFunCall(FunDef funDef, Exp[] args, Type returnType) Creates a function call. -
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()getArg(int index) Returns the Exp argument at the specified index.final intReturns the number of arguments.Exp[]getArgs()Returns the internal array of Exp arguments.final intReturns theCategoryof the expression.Object[]Returns the definition of the function which is being called.Returns the name of the function.Returns the syntax of the call.final TypegetType()Returns the type of this expression.toString()voidunparse(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
-
Constructor Details
-
ResolvedFunCall
Creates a function call.- Parameters:
funDef- Function definitionargs- ArgumentsreturnType- Return type
-
-
Method Details
-
toString
-
clone
-
getArg
Returns the Exp argument at the specified index. -
getArgs
Returns the internal array of Exp arguments.Note: this does NOT do a copy.
-
getArgCount
public final int getArgCount()Returns the number of arguments.- Specified by:
getArgCountin interfaceFunCall- Returns:
- number of arguments.
- See Also:
-
getFunName
Description copied from interface:FunCallReturns the name of the function.- Specified by:
getFunNamein interfaceFunCall
-
getSyntax
Description copied from interface:FunCallReturns the syntax of the call. -
getChildren
- Overrides:
getChildrenin classQueryPart
-
getFunDef
Returns the definition of the function which is being called.- Returns:
- function definition
-
getCategory
public final int getCategory()Description copied from interface:ExpReturns theCategoryof the expression.- Specified by:
getCategoryin interfaceExp
-
getType
Description copied from interface:ExpReturns the type of this expression. Never null. -
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'. -
unparse
Description copied from class:QueryPartWrites a string representation of this parse tree node to the given writer. -
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.
-