edu.umd.cs.findbugs.classfile
public interface IAnalysisCache
Method Summary | |
---|---|
<E> void | eagerlyPutMethodAnalysis(Class<E> analysisClass, MethodDescriptor methodDescriptor, Object analysisObject)
Eagerly put a method analysis object in the cache.
|
<E> E | getClassAnalysis(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(Class<E> databaseClass)
Get a database.
|
IErrorLogger | getErrorLogger()
Get the error logger.
|
<E> E | getMethodAnalysis(Class<E> analysisClass, MethodDescriptor methodDescriptor)
Get an analysis of the given method.
|
<E> E | probeClassAnalysis(Class<E> analysisClass, ClassDescriptor classDescriptor)
See if the cache contains a cached class analysis result
for given class descriptor.
|
void | purgeMethodAnalyses(MethodDescriptor methodDescriptor)
Purge all analysis results for given method.
|
<E> void | registerClassAnalysisEngine(Class<E> analysisResultType, IClassAnalysisEngine classAnalysisEngine)
Register the given class analysis engine as producing the
analysis result type whose Class is given.
|
<E> void | registerDatabaseFactory(Class<E> databaseClass, IDatabaseFactory<E> databaseFactory)
Register a database factory.
|
<E> void | registerMethodAnalysisEngine(Class<E> analysisResultType, IMethodAnalysisEngine methodAnalysisEngine)
Register the given method analysis engine as producing the
analysis result type whose Class is given.
|
Parameters:
Parameters:
Returns: the analysis object (e.g., instance of FoobarAnalysis for the class)
Throws: CheckedAnalysisException if an error occurs performing the analysis
Returns: the classpath
Parameters:
Returns: the database (which is created by a database factory if required)
Throws: CheckedAnalysisException
Returns: the error logger
Parameters:
Returns: the analysis object (e.g., instance of FoobarAnalysis for the method)
Throws: CheckedAnalysisException if an error occurs performing the analysis
Parameters: analysisClass analysis result class classDescriptor the class descriptor
Returns: a cached analysis result, or null if there is no cached analysis result
Parameters: methodDescriptor method whose analysis results should be purged
Parameters:
Parameters:
Parameters: