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, unparseList
public ResolvedFunCall clone()
public Exp getArg(int index)
public Exp[] getArgs()
Note: this does NOT do a copy.
public final int getArgCount()
getArgCount
in interface FunCall
getArgs()
public String getFunName()
FunCall
getFunName
in interface FunCall
public Syntax getSyntax()
FunCall
public Object[] getChildren()
Walkable
are ignored.getChildren
in class QueryPart
public FunDef getFunDef()
public final int getCategory()
Exp
Category
of the expression.getCategory
in interface Exp
public final Type getType()
Exp
public Exp accept(Validator validator)
Exp
public void unparse(PrintWriter pw)
QueryPart
public Calc accept(ExpCompiler compiler)
Exp
public Object accept(MdxVisitor visitor)
Exp
MdxVisitor.visit(mondrian.olap.Query)
method appropriate to the type of expression.Copyright © 2020 Hitachi Vantara. All rights reserved.