Package net.sourceforge.pmd.cache
Class AnalysisResult
- java.lang.Object
-
- net.sourceforge.pmd.cache.AnalysisResult
-
public class AnalysisResult extends java.lang.Object
The result of a single file analysis. Includes a checksum of the file and the complete list of violations detected.
-
-
Constructor Summary
Constructors Constructor Description AnalysisResult(long fileChecksum, java.util.List<RuleViolation> violations)
AnalysisResult(java.io.File sourceFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addViolation(RuleViolation ruleViolation)
void
addViolations(java.util.List<RuleViolation> violations)
long
getFileChecksum()
java.util.List<RuleViolation>
getViolations()
-
-
-
Constructor Detail
-
AnalysisResult
public AnalysisResult(long fileChecksum, java.util.List<RuleViolation> violations)
-
AnalysisResult
public AnalysisResult(java.io.File sourceFile)
-
-
Method Detail
-
getFileChecksum
public long getFileChecksum()
-
getViolations
public java.util.List<RuleViolation> getViolations()
-
addViolations
public void addViolations(java.util.List<RuleViolation> violations)
-
addViolation
public void addViolation(RuleViolation ruleViolation)
-
-