public class ProblemFilterClassCriteria extends Object implements IProblemFilter
| Constructor and Description |
|---|
ProblemFilterClassCriteria(Class<?>... classesToFilterOut)
Construct a purely negative filter.
|
ProblemFilterClassCriteria(Set<Class<?>> classesToFilterOut,
Set<Class<?>> classesToRequire)
Construct a filter with positive and negative requirements.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(ICompilerProblem p)
Determines if the specified
ICompilerProblem passes the
filter. |
void |
addRejectedClass(Class<?> clazz)
Add a (super)class to be rejected.
|
void |
addRequiredClass(Class<?> clazz)
Add a (super)class to be required.
|
void |
removeRejectedClass(Class<?> clazz)
Remove a (super)class to was have been rejected.
|
public ProblemFilterClassCriteria(Class<?>... classesToFilterOut)
classesToFilterOut - - the classes (which may be superclasses)
of problems that should be excluded from the filtered set.public ProblemFilterClassCriteria(Set<Class<?>> classesToFilterOut, Set<Class<?>> classesToRequire)
classesToFilterOut - - the classes (which may be superclasses)
of problems that should be excluded from the filtered set.classesToRequire - - the classes (which may be superclasses)
that problems in the filtered set must extend/instantiate.public void addRejectedClass(Class<?> clazz)
clazz - - the class to be rejected.public void removeRejectedClass(Class<?> clazz)
clazz - - the class that is now allowed.public void addRequiredClass(Class<?> clazz)
clazz - - the class to be required.public boolean accept(ICompilerProblem p)
IProblemFilterICompilerProblem passes the
filter.accept in interface IProblemFilterp - ICompilerProblem to checkICompilerProblem passes the filter,
false otherwise.Copyright © 2023 The Apache Software Foundation. All rights reserved.