Detector2
, FirstPassDetector
, NonReportingDetector
, Priorities
public class BuildObligationPolicyDatabase extends java.lang.Object implements Detector2, NonReportingDetector
Modifier and Type | Field | Description |
---|---|---|
static boolean |
INFER_CLOSE_METHODS |
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
Constructor | Description |
---|---|
BuildObligationPolicyDatabase(BugReporter bugReporter) |
Modifier and Type | Method | Description |
---|---|---|
void |
addObligations(XMethod xmethod) |
|
void |
finishPass() |
This method is called at the end of the analysis pass.
|
java.lang.String |
getDetectorClassName() |
Get the name of the detector class.
|
void |
visitClass(ClassDescriptor classDescriptor) |
Visit a class.
|
public BuildObligationPolicyDatabase(BugReporter bugReporter)
public void visitClass(ClassDescriptor classDescriptor) throws CheckedAnalysisException
Detector2
visitClass
in interface Detector2
classDescriptor
- descriptor naming the class to visitCheckedAnalysisException
- if an exception occurs during analysispublic void addObligations(XMethod xmethod)
xmethod
- public void finishPass()
Detector2
finishPass
in interface Detector2
public java.lang.String getDetectorClassName()
Detector2
getDetectorClassName
in interface Detector2
SpotBugs is licensed under the LGPL.