Interface VariableProvider

  • All Known Implementing Classes:
    DefaultVariableProvider

    public interface VariableProvider
    This class represents the interface for variable providers for Expression Engine. Object of this type will be resolving the variable for any expression. It can support more than one variables.
    • 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
      • supportsVariable

        boolean supportsVariable​(String variableName)
                          throws ExpressionEngineException
        Checks whether the specified variable is supported by this variable provider or not.
        Parameters:
        variableName - name of the variable
        Returns:
        true if the variable is supported by this provider false otherwise
        Throws:
        ExpressionEngineException - if anything goes wrong