public class DetectorFactory
extends java.lang.Object
Detector| Constructor and Description |
|---|
DetectorFactory(Plugin plugin,
java.lang.String className,
java.lang.Class<?> detectorClass,
boolean enabled,
java.lang.String speed,
java.lang.String reports,
java.lang.String requireJRE)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Detector |
create(BugReporter bugReporter)
Deprecated.
Use createDetector2 in new code
|
Detector2 |
createDetector2(BugReporter bugReporter)
Create a Detector2 instance.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDetailHTML()
Get an HTML document describing the Detector.
|
java.lang.String |
getFullName()
Get the full name of the detector.
|
Plugin |
getPlugin()
Get the Plugin that this Detector is part of.
|
int |
getPositionSpecifiedInPluginDescriptor()
Get the overall position in which this detector was specified in the
plugin descriptor.
|
int |
getPriorityAdjustment()
Get the priority adjustment for the detector produced by this factory.
|
java.lang.String |
getReportedBugPatternCodes()
Get list of bug pattern codes reported by the detector: empty if unknown.
|
java.util.Set<BugPattern> |
getReportedBugPatterns()
Get set of all BugPatterns this detector reports.
|
java.lang.String |
getShortName()
Get the short name of the Detector.
|
java.lang.String |
getSpeed()
Deprecated.
|
int |
hashCode() |
boolean |
isDefaultEnabled()
Is this factory enabled by default
|
boolean |
isDetectorClassSubtypeOf(java.lang.Class<?> otherClass)
Determine whether the detector class is a subtype of the given class (or
interface).
|
boolean |
isEnabledForCurrentJRE()
Check to see if we are running on a recent-enough JRE for this detector
to be enabled.
|
boolean |
isHidden()
Get visibility of the factory (to GUI dialogs to configure detectors).
|
boolean |
isReportingDetector()
Return whether or not this DetectorFactory produces detectors which
report warnings.
|
void |
setDetailHTML(java.lang.String detailHTML)
Set the HTML document describing the Detector.
|
void |
setEnabledButNonReporting(boolean notReporting) |
void |
setHidden(boolean hidden)
Set visibility of the factory (to GUI dialogs to configure detectors).
|
void |
setPositionSpecifiedInPluginDescriptor(int positionSpecifiedInPluginDescriptor)
Set the overall position in which this detector was specified in the
plugin descriptor.
|
void |
setPriorityAdjustment(int priorityAdjustment)
Set the priority adjustment for the detector produced by this factory.
|
java.lang.String |
toString() |
public DetectorFactory(@Nonnull
Plugin plugin,
@Nonnull
java.lang.String className,
java.lang.Class<?> detectorClass,
boolean enabled,
java.lang.String speed,
java.lang.String reports,
java.lang.String requireJRE)
plugin - the Plugin the Detector is part ofclassName - TODOdetectorClass - the Class object of the Detectorenabled - true if the Detector is enabled by default, false if disabledspeed - a string describing roughly how expensive the analysis
performed by the detector is; suggested values are "fast",
"moderate", and "slow"reports - comma separated list of bug pattern codes reported by the
detector; empty if unknownrequireJRE - string describing JRE version required to run the the
detector: e.g., "1.5"public java.lang.String toString()
toString in class java.lang.Objectpublic void setPositionSpecifiedInPluginDescriptor(int positionSpecifiedInPluginDescriptor)
positionSpecifiedInPluginDescriptor - position in plugin descriptorpublic int getPositionSpecifiedInPluginDescriptor()
public Plugin getPlugin()
public boolean isDetectorClassSubtypeOf(java.lang.Class<?> otherClass)
otherClass - a class or interfacepublic boolean isReportingDetector()
public boolean isEnabledForCurrentJRE()
public void setHidden(boolean hidden)
hidden - true if this factory should be hidden, false if notpublic boolean isHidden()
public boolean isDefaultEnabled()
public void setPriorityAdjustment(int priorityAdjustment)
priorityAdjustment - the priority adjustmentpublic void setEnabledButNonReporting(boolean notReporting)
public int getPriorityAdjustment()
@Deprecated public java.lang.String getSpeed()
public java.lang.String getReportedBugPatternCodes()
public java.util.Set<BugPattern> getReportedBugPatterns()
public java.lang.String getDetailHTML()
public void setDetailHTML(java.lang.String detailHTML)
@Deprecated public Detector create(BugReporter bugReporter)
bugReporter - the BugReporter to be used to report bugspublic Detector2 createDetector2(BugReporter bugReporter)
bugReporter - the BugReporter to be used to report bugspublic java.lang.String getShortName()
@Nonnull @DottedClassName public java.lang.String getFullName()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.