org.apache.maven.plugin.pmd
Class PmdReportListener
java.lang.Object
org.apache.maven.plugin.pmd.PmdReportListener
- All Implemented Interfaces:
- net.sourceforge.pmd.ReportListener
public class PmdReportListener
- extends Object
- implements net.sourceforge.pmd.ReportListener
Handle events from PMD and collect violations.
|
Method Summary |
net.sourceforge.pmd.Report |
asReport()
Create a new single report with all violations for further rendering into other formats than HTML. |
List<net.sourceforge.pmd.RuleViolation> |
getViolations()
|
boolean |
hasViolations()
|
void |
metricAdded(net.sourceforge.pmd.stat.Metric metric)
|
void |
ruleViolationAdded(net.sourceforge.pmd.RuleViolation ruleViolation)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PmdReportListener
public PmdReportListener()
ruleViolationAdded
public void ruleViolationAdded(net.sourceforge.pmd.RuleViolation ruleViolation)
-
- Specified by:
ruleViolationAdded in interface net.sourceforge.pmd.ReportListener
getViolations
public List<net.sourceforge.pmd.RuleViolation> getViolations()
hasViolations
public boolean hasViolations()
asReport
public net.sourceforge.pmd.Report asReport()
- Create a new single report with all violations for further rendering into other formats than HTML.
metricAdded
public void metricAdded(net.sourceforge.pmd.stat.Metric metric)
-
- Specified by:
metricAdded in interface net.sourceforge.pmd.ReportListener
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.