Package mondrian.olap.fun
Class CrossJoinTest.NullFunDef
- java.lang.Object
-
- mondrian.olap.fun.CrossJoinTest.NullFunDef
-
- All Implemented Interfaces:
FunDef
- Enclosing class:
- CrossJoinTest
public static class CrossJoinTest.NullFunDef extends Object implements FunDef
-
-
Constructor Summary
Constructors Constructor Description NullFunDef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Calc
compileCall(ResolvedFunCall call, ExpCompiler compiler)
Converts a call to this function into executable objects.Exp
createCall(Validator validator, Exp[] args)
Creates an expression which represents a call to this function with a given set of arguments.String
getDescription()
Returns the description of this function.String
getName()
Returns the name of this function.int[]
getParameterCategories()
Returns the types of the arguments of this function.int
getReturnCategory()
Returns theCategory
code of the value returned by this function.String
getSignature()
Returns an English description of the signature of the function, for example "<Numeric Expression> / <Numeric Expression>".Syntax
getSyntax()
Returns the syntactic type of the function.void
unparse(Exp[] args, PrintWriter pw)
Converts a function call into MDX source code.
-
-
-
Method Detail
-
getSyntax
public Syntax getSyntax()
Description copied from interface:FunDef
Returns the syntactic type of the function.
-
getName
public String getName()
Description copied from interface:FunDef
Returns the name of this function.
-
getDescription
public String getDescription()
Description copied from interface:FunDef
Returns the description of this function.- Specified by:
getDescription
in interfaceFunDef
-
getReturnCategory
public int getReturnCategory()
Description copied from interface:FunDef
Returns theCategory
code of the value returned by this function.- Specified by:
getReturnCategory
in interfaceFunDef
-
getParameterCategories
public int[] getParameterCategories()
Description copied from interface:FunDef
Returns the types of the arguments of this function. Values are the same as those returned byExp.getCategory()
. The 0th argument of methods and properties are the object they are applied to. Infix operators have two arguments, and prefix operators have one argument.- Specified by:
getParameterCategories
in interfaceFunDef
-
createCall
public Exp createCall(Validator validator, Exp[] args)
Description copied from interface:FunDef
Creates an expression which represents a call to this function with a given set of arguments. The result is usually aResolvedFunCall
but not always.- Specified by:
createCall
in interfaceFunDef
-
getSignature
public String getSignature()
Description copied from interface:FunDef
Returns an English description of the signature of the function, for example "<Numeric Expression> / <Numeric Expression>".- Specified by:
getSignature
in interfaceFunDef
-
unparse
public void unparse(Exp[] args, PrintWriter pw)
Description copied from interface:FunDef
Converts a function call into MDX source code.
-
compileCall
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler)
Description copied from interface:FunDef
Converts a call to this function into executable objects.The result must implement the appropriate interface for the result type. For example, a function which returns an integer must return an object which implements
IntegerCalc
.- Specified by:
compileCall
in interfaceFunDef
-
-