abstract class AbstractClassNameFilter extends java.lang.Object implements ClassNameFilter
ClassNameFilter
that servers as a superclass
for filters including or excluding fully qualified class names
based on pattern-matching.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
patternDescription |
protected java.util.List<java.util.regex.Pattern> |
patterns |
STANDARD_INCLUDE_PATTERN
Constructor and Description |
---|
AbstractClassNameFilter(java.lang.String... patterns) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Optional<java.util.regex.Pattern> |
findMatchingPattern(java.lang.String className) |
abstract java.util.function.Predicate<java.lang.String> |
toPredicate()
Return a
Predicate that returns true if this filter
includes the object supplied to the predicate's
test method. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
excludeClassNamePatterns, includeClassNamePatterns
adaptFilter, apply, composeFilters, composeFilters
protected final java.util.List<java.util.regex.Pattern> patterns
protected final java.lang.String patternDescription
public abstract java.util.function.Predicate<java.lang.String> toPredicate()
Filter
Predicate
that returns true
if this filter
includes the object supplied to the predicate's
test
method.toPredicate
in interface Filter<java.lang.String>
protected java.util.Optional<java.util.regex.Pattern> findMatchingPattern(java.lang.String className)