Interface FunctionProvider

    • Method Detail

      • initialize

        void initialize​(ExpressionContext expressionContext)
                 throws ExpressionEngineException
        It initialize the Function provider with expression context and also gives a chance to pre-initialize any internal states for operations
        Parameters:
        expressionContext - Context of current expression evaluation process
        Throws:
        ExpressionEngineException
      • getFunctionType

        Type getFunctionType​(String functionName,
                             Type[] parameterTypes)
                      throws ExpressionEngineException
        Gets the return type of the function.
        Parameters:
        functionName - the name of the function.
        parameterTypes - the types of the parameters
        Returns:
        the return type of the function
        Throws:
        ExpressionEngineException - if anything goes wrong
      • supportsFunction

        boolean supportsFunction​(String functionName,
                                 Type[] parameterTypes)
                          throws ExpressionEngineException
        Checks whether the this function provider supports any function or not.
        Parameters:
        functionName - the name of the function
        parameterTypes - the type of parameters for the function
        Returns:
        true if function provider supports the function false otherwise
        Throws:
        ExpressionEngineException - if anything goes wrong