public interface IAnalysisCache
| Modifier and Type | Method and Description |
|---|---|
<E> void |
eagerlyPutDatabase(java.lang.Class<E> databaseClass,
E database)
Eagerly install a database.
|
<E> void |
eagerlyPutMethodAnalysis(java.lang.Class<E> analysisClass,
MethodDescriptor methodDescriptor,
E analysisObject)
Eagerly put a method analysis object in the cache.
|
java.util.Map<?,?> |
getAnalysisLocals()
Deprecated.
This method is not necessary to realize multi-thread model in SpotBugs 4.0. See
AnalysisLocal for detail. |
<E> E |
getClassAnalysis(java.lang.Class<E> analysisClass,
ClassDescriptor classDescriptor)
Get an analysis of the given class.
|
IClassPath |
getClassPath()
Get the classpath from which classes are loaded.
|
<E> E |
getDatabase(java.lang.Class<E> databaseClass)
Get a database.
|
IErrorLogger |
getErrorLogger()
Get the error logger.
|
<E> E |
getMethodAnalysis(java.lang.Class<E> analysisClass,
MethodDescriptor methodDescriptor)
Get an analysis of the given method.
|
<E> E |
getOptionalDatabase(java.lang.Class<E> databaseClass) |
Profiler |
getProfiler()
Get the analysis profiler instance, never null
|
<E> E |
probeClassAnalysis(java.lang.Class<E> analysisClass,
ClassDescriptor classDescriptor)
See if the cache contains a cached class analysis result for given class
descriptor.
|
void |
purgeAllMethodAnalysis()
Purge all method analysis results for all methods.
|
void |
purgeClassAnalysis(java.lang.Class<?> analysisClass)
Purge all class analysis results of a particular kind
|
void |
purgeMethodAnalyses(MethodDescriptor methodDescriptor)
Purge all analysis results for given method.
|
<E> void |
registerClassAnalysisEngine(java.lang.Class<E> analysisResultType,
IClassAnalysisEngine<E> classAnalysisEngine)
Register the given class analysis engine as producing the analysis result
type whose Class is given.
|
<E> void |
registerDatabaseFactory(java.lang.Class<E> databaseClass,
IDatabaseFactory<E> databaseFactory)
Register a database factory.
|
<E> void |
registerMethodAnalysisEngine(java.lang.Class<E> analysisResultType,
IMethodAnalysisEngine<E> methodAnalysisEngine)
Register the given method analysis engine as producing the analysis
result type whose Class is given.
|
<E> void registerClassAnalysisEngine(java.lang.Class<E> analysisResultType,
IClassAnalysisEngine<E> classAnalysisEngine)
E - analysis result typeanalysisResultType - analysis result type Class objectclassAnalysisEngine - the class analysis engine to register<E> void registerMethodAnalysisEngine(java.lang.Class<E> analysisResultType,
IMethodAnalysisEngine<E> methodAnalysisEngine)
E - analysis result typeanalysisResultType - analysis result type Class objectmethodAnalysisEngine - the method analysis engine to register<E> E getClassAnalysis(java.lang.Class<E> analysisClass,
@Nonnull
ClassDescriptor classDescriptor)
throws CheckedAnalysisException
E - the type of the analysis (e.g., FoobarAnalysis)analysisClass - the analysis class object (e.g., FoobarAnalysis.class)classDescriptor - the descriptor of the class to analyzeCheckedAnalysisException - if an error occurs performing the analysis<E> E probeClassAnalysis(java.lang.Class<E> analysisClass,
@Nonnull
ClassDescriptor classDescriptor)
analysisClass - analysis result classclassDescriptor - the class descriptor<E> E getMethodAnalysis(java.lang.Class<E> analysisClass,
@Nonnull
MethodDescriptor methodDescriptor)
throws CheckedAnalysisException
E - the type of the analysis (e.g., FoobarAnalysis)analysisClass - the analysis class object (e.g., FoobarAnalysis.class)methodDescriptor - the descriptor of the method to analyzeCheckedAnalysisException - if an error occurs performing the analysis<E> void eagerlyPutMethodAnalysis(java.lang.Class<E> analysisClass,
@Nonnull
MethodDescriptor methodDescriptor,
E analysisObject)
E - the type of the analysis (e.g., FoobarAnalysis)analysisClass - the analysis class object (e.g., FoobarAnalysis.class)methodDescriptor - the descriptor of the method to analyzeanalysisObject - void purgeMethodAnalyses(@Nonnull
MethodDescriptor methodDescriptor)
methodDescriptor - method whose analysis results should be purgedvoid purgeAllMethodAnalysis()
void purgeClassAnalysis(java.lang.Class<?> analysisClass)
<E> void registerDatabaseFactory(java.lang.Class<E> databaseClass,
IDatabaseFactory<E> databaseFactory)
E - type of databasedatabaseClass - Class of databasedatabaseFactory - the database factory<E> E getDatabase(java.lang.Class<E> databaseClass)
E - type of databasedatabaseClass - Class of database@CheckForNull <E> E getOptionalDatabase(java.lang.Class<E> databaseClass)
<E> void eagerlyPutDatabase(java.lang.Class<E> databaseClass,
E database)
E - type of databasedatabaseClass - Class of databasedatabase - database objectIClassPath getClassPath()
IErrorLogger getErrorLogger()
@Deprecated java.util.Map<?,?> getAnalysisLocals()
AnalysisLocal for detail.Profiler getProfiler()
SpotBugs is licensed under the LGPL.