public class PmdReportListener extends Object implements ReportListener
Constructor and Description |
---|
PmdReportListener() |
Modifier and Type | Method and Description |
---|---|
Report |
asReport()
Create a new single report with all violations for further rendering into other formats than HTML.
|
List<RuleViolation> |
getViolations() |
boolean |
hasViolations() |
void |
metricAdded(Metric metric) |
void |
ruleViolationAdded(RuleViolation ruleViolation) |
public void ruleViolationAdded(RuleViolation ruleViolation)
ruleViolationAdded
in interface ReportListener
public List<RuleViolation> getViolations()
public boolean hasViolations()
public Report asReport()
public void metricAdded(Metric metric)
metricAdded
in interface ReportListener
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.