mondrian.olap.fun
Class CrossJoinTest.TestFunDef

java.lang.Object
  extended by mondrian.olap.fun.CrossJoinTest.TestFunDef
All Implemented Interfaces:
FunDef
Enclosing class:
CrossJoinTest

public static class CrossJoinTest.TestFunDef
extends Object
implements FunDef


Constructor Summary
CrossJoinTest.TestFunDef()
           
 
Method Summary
 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 the Category 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossJoinTest.TestFunDef

CrossJoinTest.TestFunDef()
Method Detail

getSyntax

public Syntax getSyntax()
Description copied from interface: FunDef
Returns the syntactic type of the function.

Specified by:
getSyntax in interface FunDef

getName

public String getName()
Description copied from interface: FunDef
Returns the name of this function.

Specified by:
getName in interface FunDef

getDescription

public String getDescription()
Description copied from interface: FunDef
Returns the description of this function.

Specified by:
getDescription in interface FunDef

getReturnCategory

public int getReturnCategory()
Description copied from interface: FunDef
Returns the Category code of the value returned by this function.

Specified by:
getReturnCategory in interface FunDef

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 by Exp.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 interface FunDef

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 a ResolvedFunCall but not always.

Specified by:
createCall in interface FunDef

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 interface FunDef

unparse

public void unparse(Exp[] args,
                    PrintWriter pw)
Description copied from interface: FunDef
Converts a function call into MDX source code.

Specified by:
unparse in interface FunDef

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 interface FunDef

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads