Package edu.umd.cs.findbugs.classfile
Class Global
java.lang.Object
edu.umd.cs.findbugs.classfile.Global
Static methods for accessing objects that are global to an analysis session.
Hopefully, this will be limited to the analysis cache.
- Author:
- David Hovemeyer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IAnalysisCacheGet the analysis cache for the current thread.static voidRemove the analysis cache for the current thread.static voidsetAnalysisCacheForCurrentThread(IAnalysisCache analysisCache) Set the analysis cache for the current thread.
-
Constructor Details
-
Global
public Global()
-
-
Method Details
-
removeAnalysisCacheForCurrentThread
public static void removeAnalysisCacheForCurrentThread()Remove the analysis cache for the current thread. This should be called after all analysis is complete -
setAnalysisCacheForCurrentThread
Set the analysis cache for the current thread. This should be called before any detectors or analyses that need the cache are used.- Parameters:
analysisCache- the analysis cache to set for the current thread
-
getAnalysisCache
Get the analysis cache for the current thread.- Returns:
- the analysis cache for the current thread
-