Package net.sourceforge.pmd.reporting
Class Report.ReportBuilderListener
java.lang.Object
net.sourceforge.pmd.util.BaseResultProducingCloseable<Report>
net.sourceforge.pmd.reporting.Report.ReportBuilderListener
- All Implemented Interfaces:
AutoCloseable,FileAnalysisListener
- Enclosing class:
Report
public static final class Report.ReportBuilderListener
extends BaseResultProducingCloseable<Report>
implements FileAnalysisListener
A
FileAnalysisListener that accumulates events into a
Report.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ReportProduce the final result.voidonError(Report.ProcessingError error) Handle an error that occurred while processing a file.voidonRuleViolation(RuleViolation violation) Handle a new violation (not suppressed).voidHandle a new suppressed violation.toString()Methods inherited from class net.sourceforge.pmd.util.BaseResultProducingCloseable
close, closeImpl, ensureOpen, getResult, usingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.reporting.FileAnalysisListener
close
-
Constructor Details
-
ReportBuilderListener
public ReportBuilderListener()
-
-
Method Details
-
getResultImpl
Description copied from class:BaseResultProducingCloseableProduce the final result.- Specified by:
getResultImplin classBaseResultProducingCloseable<Report>
-
onRuleViolation
Description copied from interface:FileAnalysisListenerHandle a new violation (not suppressed).- Specified by:
onRuleViolationin interfaceFileAnalysisListener
-
onSuppressedRuleViolation
Description copied from interface:FileAnalysisListenerHandle a new suppressed violation.- Specified by:
onSuppressedRuleViolationin interfaceFileAnalysisListener
-
onError
Description copied from interface:FileAnalysisListenerHandle an error that occurred while processing a file.- Specified by:
onErrorin interfaceFileAnalysisListener
-
toString
-