|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAnalysisCache
The analysis cache performs analyses on classes and methods and caches the results.
Method Summary | ||
---|---|---|
|
eagerlyPutDatabase(java.lang.Class<E> databaseClass,
E database)
Eagerly install a database. |
|
|
eagerlyPutMethodAnalysis(java.lang.Class<E> analysisClass,
MethodDescriptor methodDescriptor,
java.lang.Object analysisObject)
Eagerly put a method analysis object in the cache. |
|
java.util.Map<?,?> |
getAnalysisLocals()
Get map of analysis-local objects. |
|
|
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. |
|
|
getDatabase(java.lang.Class<E> databaseClass)
Get a database. |
|
IErrorLogger |
getErrorLogger()
Get the error logger. |
|
|
getMethodAnalysis(java.lang.Class<E> analysisClass,
MethodDescriptor methodDescriptor)
Get an analysis of the given method. |
|
Profiler |
getProfiler()
Get the analysis profiler instance, never null |
|
|
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 analysis results for all methods. |
|
void |
purgeMethodAnalyses(MethodDescriptor methodDescriptor)
Purge all analysis results for given method. |
|
|
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. |
|
|
registerDatabaseFactory(java.lang.Class<E> databaseClass,
IDatabaseFactory<E> databaseFactory)
Register a database factory. |
|
|
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. |
Method Detail |
---|
<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 analyze
CheckedAnalysisException
- 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 analyze
CheckedAnalysisException
- if an error occurs performing the analysis<E> void eagerlyPutMethodAnalysis(java.lang.Class<E> analysisClass, @Nonnull MethodDescriptor methodDescriptor, java.lang.Object 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()
<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
<E> void eagerlyPutDatabase(java.lang.Class<E> databaseClass, E database)
E
- type of databasedatabaseClass
- Class of databasedatabase
- database objectIClassPath getClassPath()
IErrorLogger getErrorLogger()
java.util.Map<?,?> getAnalysisLocals()
Profiler getProfiler()
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |