net.sourceforge.pmd.properties.PropertySource, net.sourceforge.pmd.renderers.Rendererpublic class PmdCollectingRenderer
extends net.sourceforge.pmd.renderers.AbstractRenderer
| Constructor | Description |
|---|---|
PmdCollectingRenderer() |
Collects all reports from all threads.
|
| Modifier and Type | Method | Description |
|---|---|---|
net.sourceforge.pmd.Report |
asReport() |
Create a new single report with all violations for further rendering into other formats than HTML.
|
java.lang.String |
defaultFileExtension() |
|
void |
end() |
|
java.util.List<net.sourceforge.pmd.Report.ProcessingError> |
getErrors() |
Gets all the processing errors.
|
java.lang.String |
getErrorsAsString(boolean withDetails) |
Gets the errors as a single string.
|
java.util.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) |
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, setProperty, useDefaultValueFor, usesDefaultValuesflush, getDescription, getName, getWriter, isShowSuppressedViolations, setDescription, setName, setShowSuppressedViolations, setWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefinePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, setProperty, useDefaultValueFor, usesDefaultValuespublic PmdCollectingRenderer()
public void renderFileReport(net.sourceforge.pmd.Report report)
throws java.io.IOException
java.io.IOExceptionpublic boolean hasViolations()
true if at least one violations has been foundpublic java.util.List<net.sourceforge.pmd.RuleViolation> getViolations()
public boolean hasErrors()
true if any errors have been foundpublic java.util.List<net.sourceforge.pmd.Report.ProcessingError> getErrors()
public java.lang.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 java.lang.String defaultFileExtension()
public void start()
throws java.io.IOException
java.io.IOExceptionpublic void startFileAnalysis(net.sourceforge.pmd.util.datasource.DataSource dataSource)
public void end()
throws java.io.IOException
java.io.IOExceptionCopyright © 2005–2018 The Apache Software Foundation. All rights reserved.