Package net.sourceforge.pmd
Class Report.GlobalReportBuilderListener
- java.lang.Object
-
- net.sourceforge.pmd.util.BaseResultProducingCloseable<Report>
-
- net.sourceforge.pmd.Report.GlobalReportBuilderListener
-
- All Implemented Interfaces:
AutoCloseable
,GlobalAnalysisListener
- Enclosing class:
- Report
public static final class Report.GlobalReportBuilderListener extends BaseResultProducingCloseable<Report> implements GlobalAnalysisListener
AGlobalAnalysisListener
that accumulates the events of all files into aReport
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sourceforge.pmd.reporting.GlobalAnalysisListener
GlobalAnalysisListener.ViolationCounterListener
-
-
Constructor Summary
Constructors Constructor Description GlobalReportBuilderListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Report
getResultImpl()
Produce the final result.void
onConfigError(Report.ConfigurationError error)
Record a configuration error.FileAnalysisListener
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, using
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.reporting.GlobalAnalysisListener
close, initializer
-
-
-
-
Method Detail
-
startFileAnalysis
public FileAnalysisListener startFileAnalysis(TextFile file)
Description copied from interface:GlobalAnalysisListener
Returns 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:
startFileAnalysis
in interfaceGlobalAnalysisListener
- Parameters:
file
- File to be processed- Returns:
- A new listener
-
onConfigError
public void onConfigError(Report.ConfigurationError error)
Description copied from interface:GlobalAnalysisListener
Record a configuration error. This happens before the start of file analysis.- Specified by:
onConfigError
in interfaceGlobalAnalysisListener
-
getResultImpl
protected Report getResultImpl()
Description copied from class:BaseResultProducingCloseable
Produce the final result.- Specified by:
getResultImpl
in classBaseResultProducingCloseable<Report>
-
-