public class PmdCollectingRenderer extends AbstractRenderer
description, name, propertyDefinitions, showSuppressedViolations, writer
propertyDescriptors, 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, setWriter
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, useDefaultValueFor, usesDefaultValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, useDefaultValueFor, usesDefaultValues
public PmdCollectingRenderer()
public void renderFileReport(Report report) throws IOException
IOException
public 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
IOException
public void startFileAnalysis(DataSource dataSource)
public void end() throws IOException
IOException
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.