Class StaticFilter.CompositeFilter
- java.lang.Object
-
- com.tonic.analysis.query.planner.filter.StaticFilter.CompositeFilter
-
- All Implemented Interfaces:
StaticFilter
- Enclosing interface:
- StaticFilter
public static class StaticFilter.CompositeFilter extends Object implements StaticFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStaticFilter.CompositeFilter.OpHow two filters' results are combined - intersection or union.-
Nested classes/interfaces inherited from interface com.tonic.analysis.query.planner.filter.StaticFilter
StaticFilter.AllFilter, StaticFilter.CompositeFilter
-
-
Constructor Summary
Constructors Constructor Description CompositeFilter(StaticFilter left, StaticFilter right, StaticFilter.CompositeFilter.Op op)Creates a filter that runs two filters over the same candidates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ClassFile>filterClasses(Stream<ClassFile> classes)Runs both filters over the candidates and combines their results.Set<MethodEntry>filterMethods(Stream<MethodEntry> methods)Runs both filters over the candidates and combines their results.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tonic.analysis.query.planner.filter.StaticFilter
and, or
-
-
-
-
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 filterright- the second filterop- 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:
filterMethodsin interfaceStaticFilter- 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:
filterClassesin interfaceStaticFilter- Parameters:
classes- the candidate classes- Returns:
- the intersection of the two results under AND, their union under OR
-
-