public class PmdCollectingRenderer
extends net.sourceforge.pmd.renderers.AbstractRenderer
Constructor and Description |
---|
PmdCollectingRenderer()
Collects all reports from all threads.
|
Modifier and Type | Method and Description |
---|---|
net.sourceforge.pmd.Report |
asReport()
Create a new single report with all violations for further rendering into other formats than HTML.
|
String |
defaultFileExtension() |
void |
end() |
List<net.sourceforge.pmd.Report.ProcessingError> |
getErrors()
Gets all the processing errors.
|
String |
getErrorsAsString(boolean withDetails)
Gets the errors as a single string.
|
List<net.sourceforge.pmd.RuleViolation> |
getViolations()
Gets the list of all found violations.
|
boolean |
hasErrors()
Checks whether any processing errors have been found.
|
boolean |
hasViolations()
Checks whether any violations have been found.
|
void |
renderFileReport(net.sourceforge.pmd.Report report) |
void |
start() |
void |
startFileAnalysis(net.sourceforge.pmd.util.datasource.DataSource dataSource) |
determineFileName, flush, getDescription, getName, getPropertySourceType, getWriter, isShowSuppressedViolations, setDescription, setName, setShowSuppressedViolations, setUseShortNames, setWriter
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
public PmdCollectingRenderer()
public void renderFileReport(net.sourceforge.pmd.Report report) throws IOException
IOException
public boolean hasViolations()
true
if at least one violations has been foundpublic List<net.sourceforge.pmd.RuleViolation> getViolations()
public boolean hasErrors()
true
if any errors have been foundpublic List<net.sourceforge.pmd.Report.ProcessingError> getErrors()
public String getErrorsAsString(boolean withDetails)
withDetails
- if true
then add the error details additionally (contains e.g. the stacktrace)public net.sourceforge.pmd.Report asReport()
public String defaultFileExtension()
public void start() throws IOException
IOException
public void startFileAnalysis(net.sourceforge.pmd.util.datasource.DataSource dataSource)
public void end() throws IOException
IOException
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.