Package net.sourceforge.pmd.reporting
Class Report.GlobalReportBuilderListener
java.lang.Object
net.sourceforge.pmd.util.BaseResultProducingCloseable<Report>
net.sourceforge.pmd.reporting.Report.GlobalReportBuilderListener
- All Implemented Interfaces:
AutoCloseable,GlobalAnalysisListener
- Enclosing class:
Report
public static final class Report.GlobalReportBuilderListener
extends BaseResultProducingCloseable<Report>
implements GlobalAnalysisListener
A
GlobalAnalysisListener that accumulates the events of
all files into a Report.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.sourceforge.pmd.reporting.GlobalAnalysisListener
GlobalAnalysisListener.ViolationCounterListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProduce the final result.voidRecord a configuration error.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
-
Constructor Details
-
GlobalReportBuilderListener
public GlobalReportBuilderListener()
-
-
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
-
onConfigError
Description copied from interface:GlobalAnalysisListenerRecord a configuration error. This happens before the start of file analysis.- Specified by:
onConfigErrorin interfaceGlobalAnalysisListener
-
getResultImpl
Description copied from class:BaseResultProducingCloseableProduce the final result.- Specified by:
getResultImplin classBaseResultProducingCloseable<Report>
-