FindBugs™ 1.3.9

edu.umd.cs.findbugs.classfile
Class Global

java.lang.Object
  extended by edu.umd.cs.findbugs.classfile.Global

public abstract class Global
extends java.lang.Object

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
Global()
           
 
Method Summary
static IAnalysisCache getAnalysisCache()
          Get the analysis cache for the current thread.
static void removeAnalysisCacheForCurrentThread()
          Remove the analysis cache for the current thread.
static void setAnalysisCacheForCurrentThread(IAnalysisCache analysisCache)
          Set the analysis cache for the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Global

public Global()
Method Detail

removeAnalysisCacheForCurrentThread

public static void removeAnalysisCacheForCurrentThread()
Remove the analysis cache for the current thread. This should be called after all analysis is complete


setAnalysisCacheForCurrentThread

public static void setAnalysisCacheForCurrentThread(IAnalysisCache analysisCache)
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

public static IAnalysisCache getAnalysisCache()
Get the analysis cache for the current thread.

Returns:
the analysis cache for the current thread

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.