public class ClassScreener extends java.lang.Object implements IClassScreener
FindBugs
Constructor and Description |
---|
ClassScreener()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllowedClass(java.lang.String className)
Add the name of a class to be matched by the screener.
|
void |
addAllowedPackage(java.lang.String packageName)
Add the name of a package to be matched by the screener.
|
void |
addAllowedPrefix(java.lang.String prefix)
Add the name of a prefix to be matched by the screener.
|
boolean |
matches(java.lang.String fileName)
Return whether or not the name of the given file matches.
|
boolean |
vacuous()
Does the class screener always return true?
|
public ClassScreener()
public void addAllowedClass(java.lang.String className)
className
- name of a class to be matchedpublic void addAllowedPackage(java.lang.String packageName)
packageName
- name of the package to be matchedpublic void addAllowedPrefix(java.lang.String prefix)
prefix
- name of the prefix to be matchedpublic boolean matches(java.lang.String fileName)
IClassScreener
matches
in interface IClassScreener
public boolean vacuous()
IClassScreener
vacuous
in interface IClassScreener
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.