|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.umd.cs.findbugs.AbstractBugReporter
edu.umd.cs.findbugs.TextUIBugReporter
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 class edu.umd.cs.findbugs.TextUIBugReporter |
|---|
outputStream |
| Fields inherited from interface edu.umd.cs.findbugs.BugReporter |
|---|
NORMAL, SILENT |
| Constructor Summary | |
|---|---|
Reporter(org.apache.maven.doxia.sink.Sink pSink,
ResourceBundle pBundle,
org.apache.maven.plugin.logging.Log pLog,
ThresholdParameter pThreshold,
boolean isJXRReportEnabled,
EffortParameter pEffort)
Default constructor. |
|
| Method Summary | |
|---|---|
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 bugInstance)
|
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 |
getSummaryTitle()
Gets the title for the summary section. |
protected String |
getThresholdTitle()
Gets the threshold title of the report. |
protected String |
getVersionTitle()
Gets the Findbugs Version title of the report. |
void |
logError(String message)
|
void |
logError(String message,
Throwable e)
|
void |
observeClass(edu.umd.cs.findbugs.classfile.ClassDescriptor clazz)
Observe a class. |
protected void |
openClassReportSection()
Initialised a bug report section in the report for a particular class. |
protected void |
printBug(edu.umd.cs.findbugs.BugInstance bugInstance)
Print the bug collection to a line in the table |
protected void |
printFilesSummary()
Print the File Summary Section. |
protected void |
printFilesSummaryLine(int classBugs)
|
protected void |
printSummary()
Print the Summary Section. |
void |
reportAnalysisError(edu.umd.cs.findbugs.AnalysisError analysisError)
Report a queued error. |
void |
reportMissingClass(edu.umd.cs.findbugs.classfile.ClassDescriptor classDescriptor)
|
void |
reportMissingClass(ClassNotFoundException ex)
|
void |
reportMissingClass(String missingClass)
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.TextUIBugReporter |
|---|
checkBugInstance, emitLine, getUseLongBugCodes, reportQueuedErrors, setOutputStream, setReportStackTrace, setUseLongBugCodes |
| Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter |
|---|
addObserver, getMissingClassName, getProjectStats, notifyObservers, reportBug, reportSkippedAnalysis, 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.apache.maven.doxia.sink.Sink pSink,
ResourceBundle pBundle,
org.apache.maven.plugin.logging.Log pLog,
ThresholdParameter pThreshold,
boolean isJXRReportEnabled,
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.isJXRReportEnabled - Is the jxr report plugin enabled.pEffort - The used effort.| Method Detail |
|---|
public void finish()
BugReporter.finish()public edu.umd.cs.findbugs.BugReporter getRealBugReporter()
getRealBugReporter in interface edu.umd.cs.findbugs.BugReportergetRealBugReporter in class edu.umd.cs.findbugs.TextUIBugReporterBugReporter.getRealBugReporter()public void observeClass(edu.umd.cs.findbugs.classfile.ClassDescriptor clazz)
clazz - the class#observeClass(edu.umd.cs.findbugs.classfile.ClassDescriptor)public void reportAnalysisError(edu.umd.cs.findbugs.AnalysisError analysisError)
reportAnalysisError in class edu.umd.cs.findbugs.TextUIBugReporteranalysisError - the queued error#reportAnalysisError(edu.umd.cs.findbugs.AnalysisError)public void logError(String message)
logError in interface edu.umd.cs.findbugs.classfile.IErrorLoggerlogError in class edu.umd.cs.findbugs.AbstractBugReporter
public void logError(String message,
Throwable e)
logError in interface edu.umd.cs.findbugs.classfile.IErrorLoggerlogError in class edu.umd.cs.findbugs.AbstractBugReporterpublic void reportMissingClass(String missingClass)
reportMissingClass in class edu.umd.cs.findbugs.TextUIBugReportermissingClass - the name of the class#reportMissingClass(java.lang.String)public void reportMissingClass(ClassNotFoundException ex)
reportMissingClass in interface edu.umd.cs.findbugs.classfile.IErrorLoggerreportMissingClass in class edu.umd.cs.findbugs.AbstractBugReporterpublic void reportMissingClass(edu.umd.cs.findbugs.classfile.ClassDescriptor classDescriptor)
reportMissingClass in interface edu.umd.cs.findbugs.classfile.IErrorLoggerreportMissingClass in class edu.umd.cs.findbugs.AbstractBugReporterprotected void printBug(edu.umd.cs.findbugs.BugInstance bugInstance)
printBug in class edu.umd.cs.findbugs.TextUIBugReporterbugInstance - the bug to print
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 closeClassReportSection()
protected void doReportBug(edu.umd.cs.findbugs.BugInstance bugInstance)
doReportBug in class edu.umd.cs.findbugs.AbstractBugReporterbugInstance - The bug to report#doReportBug(edu.umd.cs.findbugs.BugInstance)protected String getDetailsLink(String pType)
pType - the bug type
protected String getEffortTitle()
protected String getFilesTitle()
protected String getSummaryTitle()
protected String getFindBugsLink()
protected String getFindBugsName()
protected String getFindBugsVersion()
protected String getReportLinkTitle()
protected String getReportTitle()
protected String getThresholdTitle()
protected String getVersionTitle()
protected void openClassReportSection()
protected String valueForLine(edu.umd.cs.findbugs.SourceLineAnnotation pLine)
pLine - The line to get the value from.
protected void printSummary()
protected void printFilesSummary()
protected void printFilesSummaryLine(int classBugs)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||