Class DisabledInheritanceFilter

  • All Implemented Interfaces:
    Filter<AnnotationSnapshot>

    public class DisabledInheritanceFilter
    extends Object
    implements Filter<AnnotationSnapshot>
    Filter implementation that filters away annotations that have an annotation type with inheritance disabled. A parent filter may be specified with 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.
    Since:
    3.5
    Author:
    Nicklas
    • Method Detail

      • evaluate

        public boolean evaluate​(AnnotationSnapshot snapshot)
        Description copied from interface: Filter
        Evaluate if the given object should pass the filter or not.
        Specified by:
        evaluate in interface Filter<AnnotationSnapshot>
        Parameters:
        snapshot - The object to evaluate
        Returns:
        TRUE if the object passes the filter, FALSE otherwise
      • setParentFilter

        public 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.