public class XMLFunctionProvider extends Object implements FunctionProvider
| Constructor and Description |
|---|
XMLFunctionProvider() |
| 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
|
static void |
main(String[] args) |
boolean |
supportsFunction(String functionName,
Type[] parameterTypes)
Checks whether the this function provider supports any function or not.
|
public Type getFunctionType(String functionName, Type[] parameterTypes) throws ExpressionEngineException
FunctionProvidergetFunctionType in interface FunctionProviderfunctionName - the name of the function.parameterTypes - the types of the parametersExpressionEngineException - if anything goes wrongpublic ValueObject getFunctionValue(String functionName, ValueObject[] parameters) throws ExpressionEngineException
FunctionProvidergetFunctionValue in interface FunctionProviderfunctionName - the name of the functionparameters - the parameters values of the functionExpressionEngineException - if anything goes wrongpublic void initialize(ExpressionContext expressionContext) throws ExpressionEngineException
FunctionProviderinitialize in interface FunctionProviderexpressionContext - Context of current expression evaluation processExpressionEngineExceptionpublic boolean supportsFunction(String functionName, Type[] parameterTypes) throws ExpressionEngineException
FunctionProvidersupportsFunction in interface FunctionProviderfunctionName - the name of the functionparameterTypes - the type of parameters for the functiontrue if function provider supports the function false otherwiseExpressionEngineException - if anything goes wrong