public interface FunctionProvider
| Modifier and Type | Method and Description |
|---|---|
Type |
getFunctionType(String functionName,
Type[] parameterTypes)
Gets the return type of the function.
|
ValueObject |
getFunctionValue(String functionName,
ValueObject[] parameters)
Gets the return value of function.
|
void |
initialize(ExpressionContext expressionContext)
It initialize the Function provider with expression context and also
gives a chance to pre-initialize any internal states for operations
|
boolean |
supportsFunction(String functionName,
Type[] parameterTypes)
Checks whether the this function provider supports any function or not.
|
void initialize(ExpressionContext expressionContext) throws ExpressionEngineException
expressionContext - Context of current expression evaluation processExpressionEngineExceptionType getFunctionType(String functionName, Type[] parameterTypes) throws ExpressionEngineException
functionName - the name of the function.parameterTypes - the types of the parametersExpressionEngineException - if anything goes wrongValueObject getFunctionValue(String functionName, ValueObject[] parameters) throws ExpressionEngineException
functionName - the name of the functionparameters - the parameters values of the functionExpressionEngineException - if anything goes wrongboolean supportsFunction(String functionName, Type[] parameterTypes) throws ExpressionEngineException
functionName - the name of the functionparameterTypes - the type of parameters for the functiontrue if function provider supports the function false otherwiseExpressionEngineException - if anything goes wrong