ThreadSafeReportListener
AbstractAnalysisCache
, FileAnalysisCache
, NoopAnalysisCache
public interface AnalysisCache extends ThreadSafeReportListener
Modifier and Type | Method | Description |
---|---|---|
void |
analysisFailed(java.io.File sourceFile) |
Notifies the cache that analysis of the given file has failed and should not be cached
|
void |
checkValidity(RuleSets ruleSets,
java.lang.ClassLoader auxclassPathClassLoader) |
Checks if the cache is valid for the configured rulesets and class loader.
|
java.util.List<RuleViolation> |
getCachedViolations(java.io.File sourceFile) |
Retrieves cached violations for the given file.
|
boolean |
isUpToDate(java.io.File sourceFile) |
Check if a given file is up to date in the cache and can be skipped from analysis
|
void |
persist() |
Persist the analysis results on whatever means is used by the cache
|
metricAdded, ruleViolationAdded
void persist()
boolean isUpToDate(java.io.File sourceFile)
sourceFile
- The file to check in the cachejava.util.List<RuleViolation> getCachedViolations(java.io.File sourceFile)
isUpToDate(File)
first.sourceFile
- The file to check in the cachevoid analysisFailed(java.io.File sourceFile)
sourceFile
- The file whose analysis failedvoid checkValidity(RuleSets ruleSets, java.lang.ClassLoader auxclassPathClassLoader)
ruleSets
- The rulesets configured for this analysis.auxclassPathClassLoader
- The class loader for auxclasspath configured for this analysis.Copyright © 2002–2018 PMD. All rights reserved.