|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.olap.QueryPart mondrian.olap.ExpBase mondrian.mdx.ResolvedFunCall
public final class ResolvedFunCall
A ResolvedFunCall
is a function applied to a list of operands,
which has been validated and resolved to a
function definition
.
Constructor Summary | |
---|---|
ResolvedFunCall(FunDef funDef,
Exp[] args,
Type returnType)
Creates a function call. |
Method Summary | |
---|---|
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. |
Methods inherited from class mondrian.olap.ExpBase |
---|
cloneArray, getTypes, unparseList |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResolvedFunCall(FunDef funDef, Exp[] args, Type returnType)
funDef
- Function definitionargs
- ArgumentsreturnType
- Return typeMethod Detail |
---|
public String toString()
toString
in class Object
public ResolvedFunCall clone()
clone
in interface Exp
clone
in class ExpBase
public Exp getArg(int index)
getArg
in interface FunCall
index
- the index of the Exp.
0
.getArgs()
public Exp[] getArgs()
Note: this does NOT do a copy.
getArgs
in interface FunCall
public final int getArgCount()
getArgCount
in interface FunCall
getArgs()
public String getFunName()
FunCall
getFunName
in interface FunCall
public Syntax getSyntax()
FunCall
getSyntax
in interface FunCall
public Object[] getChildren()
Walkable
Walkable
are ignored.
getChildren
in interface Walkable
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
getType
in interface Exp
public Exp accept(Validator validator)
Exp
accept
in interface Exp
validator
- Validator contains validation context
public void unparse(PrintWriter pw)
QueryPart
unparse
in interface Exp
unparse
in class QueryPart
pw
- writerpublic Calc accept(ExpCompiler compiler)
Exp
accept
in interface Exp
accept
in class ExpBase
public Object accept(MdxVisitor visitor)
Exp
MdxVisitor.visit(mondrian.olap.Query)
method appropriate to the type of expression.
accept
in interface Exp
visitor
- Visitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |