org.apache.maven.plugin.pmd
Class PmdReportListener
java.lang.Object
org.apache.maven.plugin.pmd.PmdReportListener
- All Implemented Interfaces:
- ReportListener
public class PmdReportListener
- extends Object
- implements ReportListener
Handle events from PMD and collect violations.
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(RuleViolation ruleViolation)
-
- Specified by:
ruleViolationAdded
in interface ReportListener
getViolations
public List<RuleViolation> getViolations()
hasViolations
public boolean hasViolations()
asReport
public Report asReport()
- Create a new single report with all violations for further rendering into other formats than HTML.
metricAdded
public void metricAdded(Metric metric)
-
- Specified by:
metricAdded
in interface ReportListener
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.