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