|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.QueryPart
mondrian.olap.ExpBase
mondrian.mdx.UnresolvedFunCall
public class 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.
| Constructor Summary | |
|---|---|
UnresolvedFunCall(String name,
Exp[] args)
Creates a function call with Syntax.Function syntax. |
|
UnresolvedFunCall(String name,
Syntax syntax,
Exp[] args)
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. |
UnresolvedFunCall |
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. |
String |
getFunName()
Returns the function name. |
Syntax |
getSyntax()
Returns the syntax of this function call. |
Type |
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnresolvedFunCall(String name,
Exp[] args)
Syntax.Function syntax.
public UnresolvedFunCall(String name,
Syntax syntax,
Exp[] args)
| Method Detail |
|---|
public UnresolvedFunCall clone()
clone in interface Expclone in class ExpBasepublic int getCategory()
ExpCategory of the expression.
getCategory in interface Exppublic Type getType()
Exp
getType in interface Exppublic void unparse(PrintWriter pw)
QueryPart
unparse in interface Expunparse in class QueryPartpw - writerpublic Object accept(MdxVisitor visitor)
ExpMdxVisitor.visit(mondrian.olap.Query) method appropriate to the type of expression.
accept in interface Expvisitor - Visitorpublic Exp accept(Validator validator)
Exp
accept in interface Expvalidator - Validator contains validation context
public Calc accept(ExpCompiler compiler)
Exp
accept in interface Expaccept in class ExpBasepublic String getFunName()
getFunName in interface FunCallpublic Syntax getSyntax()
getSyntax in interface FunCallpublic Exp getArg(int index)
getArg in interface FunCallindex - the index of the Exp.
0.getArgs()public Exp[] getArgs()
Note: this does NOT do a copy.
getArgs in interface FunCallpublic final int getArgCount()
getArgCount in interface FunCallgetArgs()public Object[] getChildren()
WalkableWalkable are ignored.
getChildren in interface WalkablegetChildren in class QueryPart
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||