R
- The return type of this visitor's methods. Use
Void
for visitors that do not need to return
results.P
- The type of the additional parameter to this visitor's methods.
Use Void
for visitors that do not need an
additional parameter.public interface FilterVisitor<R,P>
Filter
s, in the style of the visitor design pattern.
Classes implementing this interface can query filters in a type-safe manner. When a visitor is passed to a filter's accept method, the corresponding visit method most applicable to that filter is invoked.
Modifier and Type | Method and Description |
---|---|
R |
visitAndFilter(P p,
AndFilter filter)
Visits an
and filter. |
R |
visitContainsAllValuesFilter(P p,
ContainsAllValuesFilter filter)
Visits a
containsAll filter. |
R |
visitContainsFilter(P p,
ContainsFilter filter)
Visits a
contains filter. |
R |
visitEndsWithFilter(P p,
EndsWithFilter filter)
Visits a
ends with filter. |
R |
visitEqualsFilter(P p,
EqualsFilter filter)
Visits a
equality filter. |
R |
visitEqualsIgnoreCaseFilter(P p,
EqualsIgnoreCaseFilter filter)
Visits a
equals ignoreCase filter. |
R |
visitExtendedFilter(P p,
Filter filter)
Visits a
comparison filter. |
R |
visitGreaterThanFilter(P p,
GreaterThanFilter filter)
Visits a
greater than filter. |
R |
visitGreaterThanOrEqualFilter(P p,
GreaterThanOrEqualFilter filter)
Visits a
greater than or equal to filter. |
R |
visitLessThanFilter(P p,
LessThanFilter filter)
Visits a
less than filter. |
R |
visitLessThanOrEqualFilter(P p,
LessThanOrEqualFilter filter)
Visits a
less than or equal to filter. |
R |
visitNotFilter(P p,
NotFilter filter)
Visits a
not filter. |
R |
visitOrFilter(P p,
OrFilter filter)
Visits an
or filter. |
R |
visitStartsWithFilter(P p,
StartsWithFilter filter)
Visits a
starts with filter. |
R visitAndFilter(P p, AndFilter filter)
and
filter.
Implementation note: for the purposes of matching, an empty
sub-filters should always evaluate to true
.
p
- A visitor specified parameter.filter
- The visited filter.R visitContainsFilter(P p, ContainsFilter filter)
contains
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitContainsAllValuesFilter(P p, ContainsAllValuesFilter filter)
containsAll
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitEqualsFilter(P p, EqualsFilter filter)
equality
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitExtendedFilter(P p, Filter filter)
comparison
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitGreaterThanFilter(P p, GreaterThanFilter filter)
greater than
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitGreaterThanOrEqualFilter(P p, GreaterThanOrEqualFilter filter)
greater than or equal to
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitLessThanFilter(P p, LessThanFilter filter)
less than
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitLessThanOrEqualFilter(P p, LessThanOrEqualFilter filter)
less than or equal to
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitNotFilter(P p, NotFilter filter)
not
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitOrFilter(P p, OrFilter filter)
or
filter.
Implementation note: for the purposes of matching, an empty
sub-filters should always evaluate to false
.
p
- A visitor specified parameter.filter
- The visited filter.R visitStartsWithFilter(P p, StartsWithFilter filter)
starts with
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitEndsWithFilter(P p, EndsWithFilter filter)
ends with
filter.p
- A visitor specified parameter.filter
- The visited filter.R visitEqualsIgnoreCaseFilter(P p, EqualsIgnoreCaseFilter filter)
equals ignoreCase
filter.p
- A visitor specified parameter.filter
- The visited filter.Copyright © 2019. All rights reserved.