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
AFileAnalysisListenerthat accumulates events into aReport.
-
-
Constructor Summary
Constructors Constructor Description ReportBuilderListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ReportgetResultImpl()Produce 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).voidonSuppressedRuleViolation(Report.SuppressedViolation violation)Handle a new suppressed violation.StringtoString()-
Methods inherited from class net.sourceforge.pmd.util.BaseResultProducingCloseable
close, closeImpl, ensureOpen, getResult, using
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.reporting.FileAnalysisListener
close
-
-
-
-
Method Detail
-
getResultImpl
protected Report getResultImpl()
Description copied from class:BaseResultProducingCloseableProduce the final result.- Specified by:
getResultImplin classBaseResultProducingCloseable<Report>
-
onRuleViolation
public void onRuleViolation(RuleViolation violation)
Description copied from interface:FileAnalysisListenerHandle a new violation (not suppressed).- Specified by:
onRuleViolationin interfaceFileAnalysisListener
-
onSuppressedRuleViolation
public void onSuppressedRuleViolation(Report.SuppressedViolation violation)
Description copied from interface:FileAnalysisListenerHandle a new suppressed violation.- Specified by:
onSuppressedRuleViolationin interfaceFileAnalysisListener
-
onError
public void onError(Report.ProcessingError error)
Description copied from interface:FileAnalysisListenerHandle an error that occurred while processing a file.- Specified by:
onErrorin interfaceFileAnalysisListener
-
-