public final class ResolvedFunCall extends ExpBase implements FunCall
ResolvedFunCall is a function applied to a list of operands,
which has been validated and resolved to a
function definition.| Constructor and Description |
|---|
ResolvedFunCall(FunDef funDef,
Exp[] args,
Type returnType)
Creates a function call.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
cloneArray, getTypes, unparseListpublic ResolvedFunCall clone()
public Exp getArg(int index)
public Exp[] getArgs()
Note: this does NOT do a copy.
public final int getArgCount()
getArgCount in interface FunCallgetArgs()public String getFunName()
FunCallgetFunName in interface FunCallpublic Syntax getSyntax()
FunCallpublic Object[] getChildren()
Walkable are ignored.getChildren in class QueryPartpublic FunDef getFunDef()
public final int getCategory()
ExpCategory of the expression.getCategory in interface Exppublic final Type getType()
Exppublic Exp accept(Validator validator)
Exppublic void unparse(PrintWriter pw)
QueryPartpublic Calc accept(ExpCompiler compiler)
Exppublic Object accept(MdxVisitor visitor)
ExpMdxVisitor.visit(mondrian.olap.Query) method appropriate to the type of expression.Copyright © 2021 Hitachi Vantara. All rights reserved.