public class DisabledInheritanceFilter extends Object implements Filter<AnnotationSnapshot>
setParentFilter(Filter)
which is checked before checking the annotation type. This
filter will only accept an annotatin if the parent filter accepts
it and if the annotation type allows inheritance.Modifier and Type | Field and Description |
---|---|
private Set<Integer> |
disabled |
private Filter<? super AnnotationSnapshot> |
parent |
Constructor and Description |
---|
DisabledInheritanceFilter(DbControl dc)
Create a new filter.
|
DisabledInheritanceFilter(DisabledInheritanceFilter other)
Create a clone of another filter instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(AnnotationSnapshot snapshot)
Evaluate if the given object should pass the filter or not.
|
void |
setParentFilter(Filter<? super AnnotationSnapshot> parent)
Set a parent filter that must also be passed in order for the
this filter to pass an annotation.
|
private Filter<? super AnnotationSnapshot> parent
public DisabledInheritanceFilter(DbControl dc)
public DisabledInheritanceFilter(DisabledInheritanceFilter other)
setParentFilter(Filter)
method.public boolean evaluate(AnnotationSnapshot snapshot)
Filter
evaluate
in interface Filter<AnnotationSnapshot>
snapshot
- The object to evaluatepublic void setParentFilter(Filter<? super AnnotationSnapshot> parent)