public static class CrossJoinTest.TestFunDef extends Object implements FunDef
Constructor and Description |
---|
TestFunDef() |
Modifier and Type | Method and 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 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.
|
public Syntax getSyntax()
FunDef
public String getName()
FunDef
public String getDescription()
FunDef
getDescription
in interface FunDef
public int getReturnCategory()
FunDef
Category
code of the value returned by this
function.getReturnCategory
in interface FunDef
public int[] getParameterCategories()
FunDef
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.getParameterCategories
in interface FunDef
public Exp createCall(Validator validator, Exp[] args)
FunDef
ResolvedFunCall
but
not always.createCall
in interface FunDef
public String getSignature()
FunDef
getSignature
in interface FunDef
public void unparse(Exp[] args, PrintWriter pw)
FunDef
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler)
FunDef
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
.
compileCall
in interface FunDef