Package net.sourceforge.pmd
Class Report.ReportBuilderListener
- java.lang.Object
-
- net.sourceforge.pmd.util.BaseResultProducingCloseable<Report>
-
- net.sourceforge.pmd.Report.ReportBuilderListener
-
- All Implemented Interfaces:
AutoCloseable
,FileAnalysisListener
- Enclosing class:
- Report
public static final class Report.ReportBuilderListener extends BaseResultProducingCloseable<Report> implements FileAnalysisListener
AFileAnalysisListener
that accumulates events into aReport
.
-
-
Constructor Summary
Constructors Constructor Description ReportBuilderListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Report
getResultImpl()
Produce the final result.void
onError(Report.ProcessingError error)
Handle an error that occurred while processing a file.void
onRuleViolation(RuleViolation violation)
Handle a new violation (not suppressed).void
onSuppressedRuleViolation(Report.SuppressedViolation violation)
Handle a new suppressed violation.String
toString()
-
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:BaseResultProducingCloseable
Produce the final result.- Specified by:
getResultImpl
in classBaseResultProducingCloseable<Report>
-
onRuleViolation
public void onRuleViolation(RuleViolation violation)
Description copied from interface:FileAnalysisListener
Handle a new violation (not suppressed).- Specified by:
onRuleViolation
in interfaceFileAnalysisListener
-
onSuppressedRuleViolation
public void onSuppressedRuleViolation(Report.SuppressedViolation violation)
Description copied from interface:FileAnalysisListener
Handle a new suppressed violation.- Specified by:
onSuppressedRuleViolation
in interfaceFileAnalysisListener
-
onError
public void onError(Report.ProcessingError error)
Description copied from interface:FileAnalysisListener
Handle an error that occurred while processing a file.- Specified by:
onError
in interfaceFileAnalysisListener
-
-