net.sourceforge.pmd
Class Report

java.lang.Object
  extended by net.sourceforge.pmd.Report

public class Report
extends java.lang.Object


Nested Class Summary
static class Report.ProcessingError
           
static class Report.ReadableDuration
           
static class Report.SuppressedViolation
           
 
Constructor Summary
Report()
           
 
Method Summary
 void addError(Report.ProcessingError error)
           
 void addListener(ReportListener listener)
           
 void addMetric(Metric metric)
           
 void addRuleViolation(IRuleViolation violation)
           
 void end()
           
 java.util.Iterator<Report.ProcessingError> errors()
           
 void exclude(java.util.Map<java.lang.Integer,java.lang.String> lines)
           
 java.util.Map<java.lang.String,java.lang.Integer> getCountSummary()
           
 long getElapsedTimeInMillis()
           
 java.util.Map<java.lang.String,java.lang.Integer> getSummary()
           
 java.util.List<Report.SuppressedViolation> getSuppressedRuleViolations()
           
 ReportTree getViolationTree()
           
 boolean hasMetrics()
           
 boolean isEmpty()
           
 java.util.Iterator<IRuleViolation> iterator()
           
 void merge(Report r)
           
 java.util.Iterator<Metric> metrics()
           
 int size()
           
 void start()
           
 boolean treeIsEmpty()
           
 java.util.Iterator<IRuleViolation> treeIterator()
           
 int treeSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Report

public Report()
Method Detail

exclude

public void exclude(java.util.Map<java.lang.Integer,java.lang.String> lines)

getCountSummary

public java.util.Map<java.lang.String,java.lang.Integer> getCountSummary()

getViolationTree

public ReportTree getViolationTree()

getSummary

public java.util.Map<java.lang.String,java.lang.Integer> getSummary()
Returns:
a Map summarizing the Report: String (rule name) ->Integer (count of violations)

addListener

public void addListener(ReportListener listener)

getSuppressedRuleViolations

public java.util.List<Report.SuppressedViolation> getSuppressedRuleViolations()

addRuleViolation

public void addRuleViolation(IRuleViolation violation)

addMetric

public void addMetric(Metric metric)

addError

public void addError(Report.ProcessingError error)

merge

public void merge(Report r)

hasMetrics

public boolean hasMetrics()

metrics

public java.util.Iterator<Metric> metrics()

isEmpty

public boolean isEmpty()

treeIsEmpty

public boolean treeIsEmpty()

treeIterator

public java.util.Iterator<IRuleViolation> treeIterator()

iterator

public java.util.Iterator<IRuleViolation> iterator()

errors

public java.util.Iterator<Report.ProcessingError> errors()

treeSize

public int treeSize()

size

public int size()

start

public void start()

end

public void end()

getElapsedTimeInMillis

public long getElapsedTimeInMillis()


Copyright © 2002-2011 InfoEther. All Rights Reserved.