Package net.sourceforge.pmd.reporting
Class ReportStatsListener
java.lang.Object
net.sourceforge.pmd.util.BaseResultProducingCloseable<ReportStats>
net.sourceforge.pmd.reporting.ReportStatsListener
- All Implemented Interfaces:
AutoCloseable,GlobalAnalysisListener
public final class ReportStatsListener
extends BaseResultProducingCloseable<ReportStats>
implements GlobalAnalysisListener
Collects summarized info about a PMD run.
- Author:
- Clément Fournier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.sourceforge.pmd.reporting.GlobalAnalysisListener
GlobalAnalysisListener.ViolationCounterListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ReportStatsProduce the final result.startFileAnalysis(TextFile file) Returns a file listener that will handle events occurring during the analysis of the given file.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, toString, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.reporting.GlobalAnalysisListener
close, initializer, onConfigError
-
Constructor Details
-
ReportStatsListener
public ReportStatsListener()
-
-
Method Details
-
startFileAnalysis
Description copied from interface:GlobalAnalysisListenerReturns a file listener that will handle events occurring during the analysis of the given file. The new listener may receive events as soon as this method returns. The analysis stops when theFileAnalysisListener.close()method is called.- Specified by:
startFileAnalysisin interfaceGlobalAnalysisListener- Parameters:
file- File to be processed- Returns:
- A new listener
-
getResultImpl
Description copied from class:BaseResultProducingCloseableProduce the final result.- Specified by:
getResultImplin classBaseResultProducingCloseable<ReportStats>
-