Class AbstractFilter
java.lang.Object
org.apache.sling.scripting.sightly.impl.filter.AbstractFilter
- All Implemented Interfaces:
Comparable<Filter>,Filter
- Direct Known Subclasses:
FormatFilter,I18nFilter,JoinFilter,URIManipulationFilter,XSSFilter
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Expressionapply(Expression expression, Map<String, ExpressionNode> options) apply(Expression expression, ExpressionContext expressionContext) Transform the given expressionintbooleanProvides the applicable contexts for this filter.Provides the option names thisFilterwill process.Provides the option names that will trigger a filter's execution.inthashCode()intpriority()The priority with which filters are applied.
-
Field Details
-
priority
protected int priority -
NON_PARAMETRIZABLE_CONTEXTS
-
-
Method Details
-
priority
public int priority()Description copied from interface:FilterThe priority with which filters are applied. This establishes order between filters. Filters with lower priority are applied first. -
compareTo
- Specified by:
compareToin interfaceComparable<Filter>
-
apply
Description copied from interface:FilterTransform the given expression -
apply
-
hashCode
public int hashCode() -
equals
-
getOptions
Description copied from interface:FilterProvides the option names thisFilterwill process.- Specified by:
getOptionsin interfaceFilter- Returns:
- a set of option names
-
getRequiredOptions
Description copied from interface:FilterProvides the option names that will trigger a filter's execution.- Specified by:
getRequiredOptionsin interfaceFilter- Returns:
- the required options from an expression in order to trigger the filter
-
getApplicableContexts
Description copied from interface:FilterProvides the applicable contexts for this filter.- Specified by:
getApplicableContextsin interfaceFilter- Returns:
- the applicable contexts for this filter
-