net.sourceforge.pmd
Class Report
java.lang.Object
net.sourceforge.pmd.Report
public class Report
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Report
public Report()
createReport
public static Report createReport(RuleContext ctx,
String fileName)
suppress
public void suppress(Map<Integer,String> lines)
getCountSummary
public Map<String,Integer> getCountSummary()
getViolationTree
public ReportTree getViolationTree()
getSummary
public Map<String,Integer> getSummary()
- Returns:
- a Map summarizing the Report: String (rule name) ->Integer (count of violations)
addListener
public void addListener(ReportListener listener)
getSuppressedRuleViolations
public List<Report.SuppressedViolation> getSuppressedRuleViolations()
addRuleViolation
public void addRuleViolation(RuleViolation violation)
addMetric
public void addMetric(Metric metric)
addConfigError
public void addConfigError(Report.RuleConfigurationError error)
addError
public void addError(Report.ProcessingError error)
merge
public void merge(Report r)
hasMetrics
public boolean hasMetrics()
metrics
public Iterator<Metric> metrics()
isEmpty
public boolean isEmpty()
hasErrors
public boolean hasErrors()
hasConfigErrors
public boolean hasConfigErrors()
treeIsEmpty
public boolean treeIsEmpty()
treeIterator
public Iterator<RuleViolation> treeIterator()
iterator
public Iterator<RuleViolation> iterator()
errors
public Iterator<Report.ProcessingError> errors()
configErrors
public Iterator<Report.RuleConfigurationError> configErrors()
treeSize
public int treeSize()
size
public int size()
start
public void start()
end
public void end()
getElapsedTimeInMillis
public long getElapsedTimeInMillis()
Copyright © 2002-2012 InfoEther. All Rights Reserved.