Package mondrian.mdx
Class UnresolvedFunCall
java.lang.Object
mondrian.olap.QueryPart
mondrian.olap.ExpBase
mondrian.mdx.UnresolvedFunCall
An expression consisting of a named function or operator
applied to a set of arguments. The syntax determines whether this is
called infix, with function call syntax, and so forth.
- Since:
- Sep 28, 2005
- Author:
- jhyde
-
Constructor Summary
ConstructorDescriptionUnresolvedFunCall
(String name, Exp[] args) Creates a function call withSyntax.Function
syntax.UnresolvedFunCall
(String name, Syntax syntax, Exp[] args) 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 int
Returns the number of arguments.Exp[]
getArgs()
Returns the internal array of Exp arguments.int
Returns theCategory
of the expression.Object[]
Returns the function name.Returns the syntax of this function call.getType()
Returns the type of this expression.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
-
Constructor Details
-
UnresolvedFunCall
Creates a function call withSyntax.Function
syntax. -
UnresolvedFunCall
Creates a function call.
-
-
Method Details
-
clone
-
getCategory
public int getCategory()Description copied from interface:Exp
Returns theCategory
of the expression.- Specified by:
getCategory
in interfaceExp
-
getType
Description copied from interface:Exp
Returns the type of this expression. Never null. -
unparse
Description copied from class:QueryPart
Writes a string representation of this parse tree node to the given writer. -
accept
Description copied from interface:Exp
Accepts a visitor to this Exp. The implementation should generally dispatches to theMdxVisitor.visit(mondrian.olap.Query)
method appropriate to the type of expression. -
accept
Description copied from interface:Exp
Validates this expression. The validator acts in the role of 'visitor' (see Gang of Four 'visitor pattern'), and an expression in the role of 'visitee'. -
accept
Description copied from interface:Exp
Converts this expression into an a tree of expressions which can be efficiently evaluated. -
getFunName
Returns the function name.- Specified by:
getFunName
in interfaceFunCall
- Returns:
- function name
-
getSyntax
Returns the syntax of this function call. -
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:
getArgCount
in interfaceFunCall
- Returns:
- number of arguments.
- See Also:
-
getChildren
- Overrides:
getChildren
in classQueryPart
-