Class AbstractFilter

    • Field Detail

      • priority

        protected int priority
      • NON_PARAMETRIZABLE_CONTEXTS

        public static final Set<ExpressionContext> NON_PARAMETRIZABLE_CONTEXTS
    • Method Detail

      • priority

        public int priority()
        Description copied from interface: Filter
        The priority with which filters are applied. This establishes order between filters. Filters with lower priority are applied first.
        Specified by:
        priority in interface Filter
        Returns:
        an integer representing the filter's priority
      • apply

        public Expression apply​(Expression expression,
                                ExpressionContext expressionContext)
        Description copied from interface: Filter
        Transform the given expression
        Specified by:
        apply in interface Filter
        Parameters:
        expression - the original expression
        expressionContext - the expression's context
        Returns:
        a transformed expression. If the filter is not applicable to the given expression, then the original expression shall be returned
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getOptions

        public Set<String> getOptions()
        Description copied from interface: Filter
        Provides the option names this Filter will process.
        Specified by:
        getOptions in interface Filter
        Returns:
        a set of option names
      • getRequiredOptions

        public Set<String> getRequiredOptions()
        Description copied from interface: Filter
        Provides the option names that will trigger a filter's execution.
        Specified by:
        getRequiredOptions in interface Filter
        Returns:
        the required options from an expression in order to trigger the filter
      • getApplicableContexts

        public Set<ExpressionContext> getApplicableContexts()
        Description copied from interface: Filter
        Provides the applicable contexts for this filter.
        Specified by:
        getApplicableContexts in interface Filter
        Returns:
        the applicable contexts for this filter