public interface AnalysisCache extends ThreadSafeReportListener
| Modifier and Type | Method and Description |
|---|---|
void |
analysisFailed(File sourceFile)
Notifies the cache that analysis of the given file has failed and should not be cached
|
void |
checkValidity(RuleSets ruleSets,
ClassLoader classLoader)
Checks if the cache is valid for the configured rulesets and class loader.
|
List<RuleViolation> |
getCachedViolations(File sourceFile)
Retrieves cached violations for the given file.
|
boolean |
isUpToDate(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, ruleViolationAddedvoid persist()
boolean isUpToDate(File sourceFile)
sourceFile - The file to check in the cacheList<RuleViolation> getCachedViolations(File sourceFile)
isUpToDate(File) first.sourceFile - The file to check in the cachevoid analysisFailed(File sourceFile)
sourceFile - The file whose analysis failedvoid checkValidity(RuleSets ruleSets, ClassLoader classLoader)
ruleSets - The rulesets configured for this analysis.classLoader - The class loader configured for this analysis.Copyright © 2002–2017 PMD. All rights reserved.