Package mondrian.mdx
Class UnresolvedFunCall
- java.lang.Object
-
- mondrian.olap.QueryPart
-
- mondrian.olap.ExpBase
-
- mondrian.mdx.UnresolvedFunCall
-
-
Constructor Summary
Constructors Constructor Description UnresolvedFunCall(String name, Exp[] args)Creates a function call withSyntax.Functionsyntax.UnresolvedFunCall(String name, Syntax syntax, Exp[] args)Creates a function call.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Calcaccept(ExpCompiler compiler)Converts this expression into an a tree of expressions which can be efficiently evaluated.Objectaccept(MdxVisitor visitor)Accepts a visitor to this Exp.Expaccept(Validator validator)Validates this expression.UnresolvedFunCallclone()ExpgetArg(int index)Returns the Exp argument at the specified index.intgetArgCount()Returns the number of arguments.Exp[]getArgs()Returns the internal array of Exp arguments.intgetCategory()Returns theCategoryof the expression.Object[]getChildren()StringgetFunName()Returns the function name.SyntaxgetSyntax()Returns the syntax of this function call.TypegetType()Returns the type of this expression.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
-
-
-
-
Method Detail
-
clone
public UnresolvedFunCall clone()
-
getCategory
public int getCategory()
Description copied from interface:ExpReturns theCategoryof the expression.- Specified by:
getCategoryin interfaceExp
-
getType
public Type getType()
Description copied from interface:ExpReturns the type of this expression. Never null.
-
unparse
public void unparse(PrintWriter pw)
Description copied from class:QueryPartWrites a string representation of this parse tree node to the given writer.
-
accept
public Object accept(MdxVisitor visitor)
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.
-
accept
public Exp accept(Validator validator)
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'.
-
accept
public Calc accept(ExpCompiler compiler)
Description copied from interface:ExpConverts this expression into an a tree of expressions which can be efficiently evaluated.
-
getFunName
public String getFunName()
Returns the function name.- Specified by:
getFunNamein interfaceFunCall- Returns:
- function name
-
getSyntax
public Syntax getSyntax()
Returns the syntax of this function call.
-
getArg
public Exp getArg(int index)
Returns the Exp argument at the specified index.
-
getArgs
public Exp[] 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:
getArgs()
-
getChildren
public Object[] getChildren()
- Overrides:
getChildrenin classQueryPart
-
-