Interface StaticFilter
-
- All Known Implementing Classes:
PatternFilter,StaticFilter.AllFilter,StaticFilter.CompositeFilter
public interface StaticFilterStatic prefilter that narrows candidate methods/classes without execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStaticFilter.AllFilterstatic classStaticFilter.CompositeFilter
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static StaticFilterall()default StaticFilterand(StaticFilter other)Combines this filter with another, keeping only what both accept.Set<ClassFile>filterClasses(Stream<ClassFile> classes)Selects the classes that pass this filter.Set<MethodEntry>filterMethods(Stream<MethodEntry> methods)Selects the methods that pass this filter.default StaticFilteror(StaticFilter other)Combines this filter with another, keeping what either accepts.
-
-
-
Method Detail
-
filterMethods
Set<MethodEntry> filterMethods(Stream<MethodEntry> methods)
Selects the methods that pass this filter.- Parameters:
methods- the candidate methods- Returns:
- the candidates that pass
-
filterClasses
Set<ClassFile> filterClasses(Stream<ClassFile> classes)
Selects the classes that pass this filter.- Parameters:
classes- the candidate classes- Returns:
- the candidates that pass
-
and
default StaticFilter and(StaticFilter other)
Combines this filter with another, keeping only what both accept.- Parameters:
other- the filter to intersect with- Returns:
- the combined filter
-
or
default StaticFilter or(StaticFilter other)
Combines this filter with another, keeping what either accepts.- Parameters:
other- the filter to union with- Returns:
- the combined filter
-
all
static StaticFilter all()
- Returns:
- a filter that accepts every candidate
-
-