Class NoopAnalysisCache

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 classLoader)
      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 metricAdded​(Metric metric)
      A new metric point has been reported.
      void persist()
      Persist the analysis results on whatever means is used by the cache
      void ruleViolationAdded​(RuleViolation ruleViolation)
      A new violation has been found.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoopAnalysisCache

        public NoopAnalysisCache()
    • Method Detail

      • persist

        public void persist()
        Description copied from interface: AnalysisCache
        Persist the analysis results on whatever means is used by the cache
        Specified by:
        persist in interface AnalysisCache
      • isUpToDate

        public boolean isUpToDate​(java.io.File sourceFile)
        Description copied from interface: AnalysisCache
        Check if a given file is up to date in the cache and can be skipped from analysis
        Specified by:
        isUpToDate in interface AnalysisCache
        Parameters:
        sourceFile - The file to check in the cache
        Returns:
        True if the cache is a hit, false otherwise
      • analysisFailed

        public void analysisFailed​(java.io.File sourceFile)
        Description copied from interface: AnalysisCache
        Notifies the cache that analysis of the given file has failed and should not be cached
        Specified by:
        analysisFailed in interface AnalysisCache
        Parameters:
        sourceFile - The file whose analysis failed
      • checkValidity

        public void checkValidity​(RuleSets ruleSets,
                                  java.lang.ClassLoader classLoader)
        Description copied from interface: AnalysisCache
        Checks if the cache is valid for the configured rulesets and class loader.
        Specified by:
        checkValidity in interface AnalysisCache
        Parameters:
        ruleSets - The rulesets configured for this analysis.
        classLoader - The class loader for auxclasspath configured for this analysis.