Class StaticFilter.CompositeFilter

    • Constructor Detail

      • CompositeFilter

        public CompositeFilter​(StaticFilter left,
                               StaticFilter right,
                               StaticFilter.CompositeFilter.Op op)
        Creates a filter that runs two filters over the same candidates.
        Parameters:
        left - the first filter
        right - the second filter
        op - how the two results are combined
    • Method Detail

      • filterMethods

        public Set<MethodEntry> filterMethods​(Stream<MethodEntry> methods)
        Runs both filters over the candidates and combines their results.
        Specified by:
        filterMethods in interface StaticFilter
        Parameters:
        methods - the candidate methods
        Returns:
        the intersection of the two results under AND, their union under OR
      • filterClasses

        public Set<ClassFile> filterClasses​(Stream<ClassFile> classes)
        Runs both filters over the candidates and combines their results.
        Specified by:
        filterClasses in interface StaticFilter
        Parameters:
        classes - the candidate classes
        Returns:
        the intersection of the two results under AND, their union under OR