|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.umd.cs.findbugs.AbstractBugReporter
org.codehaus.mojo.findbugs.Reporter
public final class Reporter
The reporter controls the generation of the FindBugs report. It contains call back methods which gets called by FindBugs if a bug is found.
| Field Summary |
|---|
| Fields inherited from interface edu.umd.cs.findbugs.BugReporter |
|---|
NORMAL, SILENT |
| Constructor Summary | |
|---|---|
Reporter(org.codehaus.doxia.sink.Sink pSink,
ResourceBundle pBundle,
org.apache.maven.plugin.logging.Log pLog,
ThresholdParameter pThreshold,
boolean pIsJXRReportEnabled,
EffortParameter pEffort)
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
addBugReport(edu.umd.cs.findbugs.BugInstance pBugInstance)
Adds a bug to the report. |
protected String |
assembleJXRHyperlink(edu.umd.cs.findbugs.SourceLineAnnotation pLine,
String pLineNumber)
Assembles the hyperlink to point to the source code. |
protected void |
closeClassReportSection()
Closes the class report section. |
protected void |
doReportBug(edu.umd.cs.findbugs.BugInstance pBugInstance)
|
void |
finish()
|
protected String |
getDetailsLink(String pType)
Gets the link to details description on findbugs site. |
protected String |
getEffortTitle()
Gets the effort title of the report. |
protected String |
getFilesTitle()
Gets the title for the files title. |
protected String |
getFindBugsLink()
Gets the link to FindBugs. |
protected String |
getFindBugsName()
Gets the name of FindBugs. |
protected String |
getFindBugsVersion()
Gets the Findbugs Version of the report. |
edu.umd.cs.findbugs.BugReporter |
getRealBugReporter()
Get the real bug reporter at the end of a chain of delegating bug reporters. |
protected String |
getReportLinkTitle()
Gets the name of the link to FindBugs. |
protected String |
getReportTitle()
Gets the report title. |
protected String |
getThresholdTitle()
Gets the threshold title of the report. |
protected String |
getVersionTitle()
Gets the Findbugs Version title of the report. |
void |
observeClass(org.apache.bcel.classfile.JavaClass clazz)
Observe a class. |
protected void |
openClassReportSection()
Initialised a bug report section in the report for a particular class. |
void |
reportAnalysisError(edu.umd.cs.findbugs.AnalysisError pAnalysisError)
Report a queued error. |
void |
reportMissingClass(String pMissingClass)
Report a missing class. |
protected String |
valueForLine(edu.umd.cs.findbugs.SourceLineAnnotation pLine)
Return the value to display. |
| Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter |
|---|
addObserver, getEngine, getMissingClassName, getProjectStats, logError, logError, notifyObservers, reportBug, reportMissingClass, reportQueuedErrors, reportSkippedAnalysis, setEngine, setErrorVerbosity, setPriorityThreshold |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reporter(org.codehaus.doxia.sink.Sink pSink,
ResourceBundle pBundle,
org.apache.maven.plugin.logging.Log pLog,
ThresholdParameter pThreshold,
boolean pIsJXRReportEnabled,
EffortParameter pEffort)
pSink - The sink to generate the report.pBundle - The resource bundle to get the messages from.pLog - The logger.pThreshold - The threshold for the report.pIsJXRReportEnabled - Is the jxr report plugin enabled.pEffort - The used effort.| Method Detail |
|---|
protected void doReportBug(edu.umd.cs.findbugs.BugInstance pBugInstance)
doReportBug in class edu.umd.cs.findbugs.AbstractBugReporterpBugInstance - the bug to report#doReportBug(edu.umd.cs.findbugs.BugInstance)public void reportAnalysisError(edu.umd.cs.findbugs.AnalysisError pAnalysisError)
reportAnalysisError in class edu.umd.cs.findbugs.AbstractBugReporterpAnalysisError - the queued error#reportAnalysisError(edu.umd.cs.findbugs.AnalysisError)public void reportMissingClass(String pMissingClass)
reportMissingClass in class edu.umd.cs.findbugs.AbstractBugReporterpMissingClass - the name of the class#reportMissingClass(java.lang.String)public void finish()
BugReporter.finish()public edu.umd.cs.findbugs.BugReporter getRealBugReporter()
BugReporter.getRealBugReporter()public void observeClass(org.apache.bcel.classfile.JavaClass clazz)
clazz - the class#observeClass(org.apache.bcel.classfile.JavaClass)protected void closeClassReportSection()
protected String getVersionTitle()
protected String getFindBugsVersion()
protected String getReportTitle()
protected String getReportLinkTitle()
protected String getFindBugsLink()
protected String getFindBugsName()
protected String getFilesTitle()
protected String getThresholdTitle()
protected String getEffortTitle()
protected String getDetailsLink(String pType)
pType - the bug type
protected void addBugReport(edu.umd.cs.findbugs.BugInstance pBugInstance)
initialiseClassReport
is needed prior to call addBugReport.
pBugInstance - The bug to add.protected String valueForLine(edu.umd.cs.findbugs.SourceLineAnnotation pLine)
pLine - The line to get the value from.
protected String assembleJXRHyperlink(edu.umd.cs.findbugs.SourceLineAnnotation pLine,
String pLineNumber)
pLine - The line number object with the bug.pLineNumber - The line number to show in the hyperlink.
protected void openClassReportSection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||