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 CalccompileCall(ResolvedFunCall call, ExpCompiler compiler)Converts a call to this function into executable objects.ExpcreateCall(Validator validator, Exp[] args)Creates an expression which represents a call to this function with a given set of arguments.StringgetDescription()Returns the description of this function.StringgetName()Returns the name of this function.int[]getParameterCategories()Returns the types of the arguments of this function.intgetReturnCategory()Returns theCategorycode of the value returned by this function.StringgetSignature()Returns an English description of the signature of the function, for example "<Numeric Expression> / <Numeric Expression>".SyntaxgetSyntax()Returns the syntactic type of the function.voidunparse(Exp[] args, PrintWriter pw)Converts a function call into MDX source code.
-
-
-
Method Detail
-
getSyntax
public Syntax getSyntax()
Description copied from interface:FunDefReturns the syntactic type of the function.
-
getName
public String getName()
Description copied from interface:FunDefReturns the name of this function.
-
getDescription
public String getDescription()
Description copied from interface:FunDefReturns the description of this function.- Specified by:
getDescriptionin interfaceFunDef
-
getReturnCategory
public int getReturnCategory()
Description copied from interface:FunDefReturns theCategorycode of the value returned by this function.- Specified by:
getReturnCategoryin interfaceFunDef
-
getParameterCategories
public int[] getParameterCategories()
Description copied from interface:FunDefReturns 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:
getParameterCategoriesin interfaceFunDef
-
createCall
public Exp createCall(Validator validator, Exp[] args)
Description copied from interface:FunDefCreates an expression which represents a call to this function with a given set of arguments. The result is usually aResolvedFunCallbut not always.- Specified by:
createCallin interfaceFunDef
-
getSignature
public String getSignature()
Description copied from interface:FunDefReturns an English description of the signature of the function, for example "<Numeric Expression> / <Numeric Expression>".- Specified by:
getSignaturein interfaceFunDef
-
unparse
public void unparse(Exp[] args, PrintWriter pw)
Description copied from interface:FunDefConverts a function call into MDX source code.
-
compileCall
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler)
Description copied from interface:FunDefConverts 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:
compileCallin interfaceFunDef
-
-