|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ClassScreener
public class ClassScreener
Class to pre-screen class files, so that only a subset are analyzed. This supports the -onlyAnalyze command line option. Modified February 2006 in four ways: a) don't break windows platform by hard-coding '/' as the directory separator b) store list of Matchers, not Patterns, so we don't keep instantiating Matchers c) fix suffix bug, so FooBar and Foo$Bar no longer match Bar d) addAllowedPackage() can now handle unicode chars in filenames, though we still may not be handling every case mentioned in section 7.2.1 of the JLS
FindBugs
Constructor Summary | |
---|---|
ClassScreener()
Constructor. |
Method Summary | |
---|---|
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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassScreener()
Method Detail |
---|
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™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |