Package net.sourceforge.pmd.cache
Class FileAnalysisCache
- java.lang.Object
-
- net.sourceforge.pmd.cache.AbstractAnalysisCache
-
- net.sourceforge.pmd.cache.FileAnalysisCache
-
- All Implemented Interfaces:
AnalysisCache
,ThreadSafeReportListener
@Deprecated @InternalApi public class FileAnalysisCache extends AbstractAnalysisCache
Deprecated.This is internal API, will be hidden with 7.0.0An analysis cache backed by a regular file.
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.cache.AbstractAnalysisCache
auxClassPathChecksum, executionClassPathChecksum, fileResultsCache, LOG, pmdVersion, ruleMapper, rulesetChecksum, updatedResultsCache
-
-
Constructor Summary
Constructors Constructor Description FileAnalysisCache(File cache)
Deprecated.Creates a new cache backed by the given file, and attempts to load pre-existing data from it.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
cacheExists()
Deprecated.Returns true if the cache exists.void
persist()
Deprecated.Persists the updated analysis results on whatever medium is used by the cache.-
Methods inherited from class net.sourceforge.pmd.cache.AbstractAnalysisCache
analysisFailed, checkValidity, getCachedViolations, isUpToDate, metricAdded, ruleViolationAdded
-
-
-
-
Constructor Detail
-
FileAnalysisCache
public FileAnalysisCache(File cache)
Deprecated.Creates a new cache backed by the given file, and attempts to load pre-existing data from it.- Parameters:
cache
- The file on which to store analysis cache
-
-
Method Detail
-
persist
public void persist()
Deprecated.Description copied from interface:AnalysisCache
Persists the updated analysis results on whatever medium is used by the cache.
-
cacheExists
protected boolean cacheExists()
Deprecated.Description copied from class:AbstractAnalysisCache
Returns true if the cache exists. If so, normal cache validity checks will be performed. Otherwise, the cache is necessarily invalid (e.g. on a first run).- Specified by:
cacheExists
in classAbstractAnalysisCache
-
-