public class NotClassFilter extends java.lang.Object implements ClassFilter
ClassFilter
that
wraps another ClassFilter
and negates the sense of the
wrapped filter's accept()
method. This
class conceptually provides a logical "NOT" operator for class name
filters. For example, the following code fragment will create a filter
that finds all classes that are not interfaces.
NotClassFilter filter = new NotClassFilter (new InterfaceOnlyClassFilter());
Constructor and Description |
---|
NotClassFilter(ClassFilter filter)
Create a new NotClassFilter that wraps the
specified
ClassFilter . |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ClassInfo classInfo,
ClassFinder classFinder)
Tests whether a class name should be included in a class name
list.
|
public NotClassFilter(ClassFilter filter)
ClassFilter
.filter
- The ClassFilter
to wrap.public boolean accept(ClassInfo classInfo, ClassFinder classFinder)
accept
in interface ClassFilter
classInfo
- the ClassInfo
object to testclassFinder
- the invoking ClassFinder
object