public interface IAnalysisCache
Modifier and Type | Method and Description |
---|---|
<E> void |
eagerlyPutDatabase(Class<E> databaseClass,
E database)
Eagerly install a database.
|
<E> void |
eagerlyPutMethodAnalysis(Class<E> analysisClass,
MethodDescriptor methodDescriptor,
E analysisObject)
Eagerly put a method analysis object in the cache.
|
Map<?,?> |
getAnalysisLocals()
Get map of analysis-local objects.
|
<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 |
getOptionalDatabase(Class<E> databaseClass) |
Profiler |
getProfiler()
Get the analysis profiler instance, never null
|
<E> E |
probeClassAnalysis(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(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(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(Class<E> databaseClass,
IDatabaseFactory<E> databaseFactory)
Register a database factory.
|
<E> void |
registerMethodAnalysisEngine(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(Class<E> analysisResultType, IClassAnalysisEngine<E> classAnalysisEngine)
E
- analysis result typeanalysisResultType
- analysis result type Class objectclassAnalysisEngine
- the class analysis engine to register<E> void registerMethodAnalysisEngine(Class<E> analysisResultType, IMethodAnalysisEngine<E> methodAnalysisEngine)
E
- analysis result typeanalysisResultType
- analysis result type Class objectmethodAnalysisEngine
- the method analysis engine to register<E> E getClassAnalysis(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(Class<E> analysisClass, @Nonnull ClassDescriptor classDescriptor)
analysisClass
- analysis result classclassDescriptor
- the class descriptor<E> E getMethodAnalysis(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(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(Class<?> analysisClass)
<E> void registerDatabaseFactory(Class<E> databaseClass, IDatabaseFactory<E> databaseFactory)
E
- type of databasedatabaseClass
- Class of databasedatabaseFactory
- the database factory<E> E getDatabase(Class<E> databaseClass)
E
- type of databasedatabaseClass
- Class of database@CheckForNull <E> E getOptionalDatabase(Class<E> databaseClass)
<E> void eagerlyPutDatabase(Class<E> databaseClass, E database)
E
- type of databasedatabaseClass
- Class of databasedatabase
- database objectIClassPath getClassPath()
IErrorLogger getErrorLogger()
Map<?,?> getAnalysisLocals()
Profiler getProfiler()
Copyright © 2003–2015. All rights reserved.