|
|||||||||
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.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 Exp
clone
in class ExpBase
public int getCategory()
Exp
Category
of the expression.
getCategory
in interface Exp
public Type getType()
Exp
getType
in interface Exp
public void unparse(PrintWriter pw)
QueryPart
unparse
in interface Exp
unparse
in class QueryPart
pw
- writerpublic Object accept(MdxVisitor visitor)
Exp
MdxVisitor.visit(mondrian.olap.Query)
method appropriate to the type of expression.
accept
in interface Exp
visitor
- Visitorpublic Exp accept(Validator validator)
Exp
accept
in interface Exp
validator
- Validator contains validation context
public Calc accept(ExpCompiler compiler)
Exp
accept
in interface Exp
accept
in class ExpBase
public String getFunName()
getFunName
in interface FunCall
public Syntax getSyntax()
getSyntax
in interface FunCall
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 Object[] getChildren()
Walkable
Walkable
are ignored.
getChildren
in interface Walkable
getChildren
in class QueryPart
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |