Top Fields Constructors Methods
net.fortuna.ical4j.filter

public abstract Class AbstractFilter<T>

extends Object
implements PredicateFactory<T>
Class Inheritance
All Implemented Interfaces
net.fortuna.ical4j.filter.PredicateFactory
Known Direct Subclasses
net.fortuna.ical4j.filter.ComponentFilter, net.fortuna.ical4j.filter.PropertyFilter
Imports
net.fortuna.ical4j.data.DefaultParameterFactorySupplier, .DefaultPropertyFactorySupplier, net.fortuna.ical4j.filter.expression.BinaryExpression, .LiteralExpression, .TargetExpression, .UnaryExpression, net.fortuna.ical4j.model.*, java.util.Collection, .List, java.util.function.Supplier, java.util.stream.Collectors

Field Summary

Modifier and TypeField and Description
private final Supplier<List<ParameterFactory<?>>>
private final Supplier<List<PropertyFactory<?>>>

Constructor Summary

AccessConstructor and Description
public
public
AbstractFilter(Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier)

Method Summary

Modifier and TypeMethod and Description
protected <V> V
protected Parameter
parameter(UnaryExpression expression)

Build a parameter instance from an expression.

protected Parameter
parameter(BinaryExpression expression)

Build a parameter instance from an expression.

protected Parameter
protected Parameter

Returns:

a parameter instance
parameter
(String name, String value)

Build a parameter from a name and value string.

protected List<Comparable<Parameter>>
parameters(BinaryExpression expression)

Build a list of parameters from an expression.

protected List<Comparable<Property>>
properties(BinaryExpression expression)

Build a property list from an expression.

protected Property
property(FilterExpression expression)

Build a property instance from an expression.

protected Property
property(UnaryExpression expression)

Build a property instance from an expression.

protected Property
property(BinaryExpression expression)

Build a property instance from an expression.

protected Property
property(FilterTarget operand)

Build a property instance from a filter specification.

protected Property
property(FilterTarget operand, String value)

Build a property instance from a filter specification and value string.

protected FilterTarget
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parameterFactorySupplierback to summary
private final Supplier<List<ParameterFactory<?>>> parameterFactorySupplier
propertyFactorySupplierback to summary
private final Supplier<List<PropertyFactory<?>>> propertyFactorySupplier

Constructor Detail

AbstractFilterback to summary
public AbstractFilter()
AbstractFilterback to summary
public AbstractFilter(Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier)

Method Detail

literalback to summary
protected <V> V literal(FilterExpression expression)
parameterback to summary
protected Parameter parameter(UnaryExpression expression)

Build a parameter instance from an expression.

parameterback to summary
protected Parameter parameter(BinaryExpression expression)

Build a parameter instance from an expression.

parameterback to summary
protected Parameter parameter(FilterTarget.Attribute a)
parameterback to summary
protected Parameter parameter(String name, String value)

Build a parameter from a name and value string.

Returns:Parameter

a parameter instance

parametersback to summary
protected List<Comparable<Parameter>> parameters(BinaryExpression expression)

Build a list of parameters from an expression.

propertiesback to summary
protected List<Comparable<Property>> properties(BinaryExpression expression)

Build a property list from an expression.

propertyback to summary
protected Property property(FilterExpression expression)

Build a property instance from an expression.

propertyback to summary
protected Property property(UnaryExpression expression)

Build a property instance from an expression.

propertyback to summary
protected Property property(BinaryExpression expression)

Build a property instance from an expression.

propertyback to summary
protected Property property(FilterTarget operand)

Build a property instance from a filter specification.

propertyback to summary
protected Property property(FilterTarget operand, String value)

Build a property instance from a filter specification and value string.

targetback to summary
protected FilterTarget target(FilterExpression expression)