public abstract class CustomFunction
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name |
| Constructor and Description |
|---|
CustomFunction(java.lang.String name,
FunctionValueType result)
Initializes an instance of a custom function.
|
CustomFunction(java.lang.String name,
FunctionValueType result,
Parameter[] parameters)
Initializes an instance of a custom function.
|
CustomFunction(java.lang.String name,
java.lang.String description,
FunctionValueType result,
Parameter[] parameters)
Initializes an instance of a custom function.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
evaluate(java.lang.Object[] arguments,
ICalcContext context)
Calculate the function.
|
boolean |
getIsVolatile()
Gets whether to allow custom formula use cache.
|
int |
getMaxParameterCount() |
FuncParameter |
GetParameter(int index) |
void |
setIsVolatile(boolean aVolatile)
Sets whether to allow custom formula use cache.
|
public CustomFunction(java.lang.String name,
FunctionValueType result)
name - The name of the custom function.result - Specifies the return type for the custom function.public CustomFunction(java.lang.String name,
FunctionValueType result,
Parameter[] parameters)
name - The name of the custom function.result - Specifies the return type for the custom function.parameters - Specifies the parmeters for the custom function.public CustomFunction(java.lang.String name,
java.lang.String description,
FunctionValueType result,
Parameter[] parameters)
name - The name of the custom function.description - The description of the custom function.result - Specifies the return type for the custom function.parameters - Specifies the parmeters for the custom function.public boolean getIsVolatile()
public void setIsVolatile(boolean aVolatile)
public int getMaxParameterCount()
public FuncParameter GetParameter(int index)
public abstract java.lang.Object evaluate(java.lang.Object[] arguments,
ICalcContext context)
arguments - the value collection of the argumentscontext - the context of the calculation.