|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.classfile.impl.AnalysisCache
public class AnalysisCache
Implementation of IAnalysisCache. This object is responsible for registering class and method analysis engines and caching analysis 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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final java.util.Map<?,?> getAnalysisLocals()
IAnalysisCache
getAnalysisLocals in interface IAnalysisCachepublic IClassPath getClassPath()
IAnalysisCache
getClassPath in interface IAnalysisCachepublic void purgeAllMethodAnalysis()
IAnalysisCache
purgeAllMethodAnalysis in interface IAnalysisCache
public <E> E getClassAnalysis(java.lang.Class<E> analysisClass,
ClassDescriptor classDescriptor)
throws CheckedAnalysisException
IAnalysisCache
getClassAnalysis in interface IAnalysisCacheE - 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
public <E> E probeClassAnalysis(java.lang.Class<E> analysisClass,
ClassDescriptor classDescriptor)
IAnalysisCache
probeClassAnalysis in interface IAnalysisCacheanalysisClass - analysis result classclassDescriptor - the class descriptor
public <E> E getMethodAnalysis(java.lang.Class<E> analysisClass,
MethodDescriptor methodDescriptor)
throws CheckedAnalysisException
IAnalysisCache
getMethodAnalysis in interface IAnalysisCacheE - 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
public <E> void eagerlyPutMethodAnalysis(java.lang.Class<E> analysisClass,
MethodDescriptor methodDescriptor,
java.lang.Object analysisObject)
IAnalysisCache
eagerlyPutMethodAnalysis in interface IAnalysisCacheE - the type of the analysis (e.g., FoobarAnalysis)analysisClass - the analysis class object (e.g., FoobarAnalysis.class)methodDescriptor - the descriptor of the method to analyzepublic void purgeMethodAnalyses(MethodDescriptor methodDescriptor)
IAnalysisCache
purgeMethodAnalyses in interface IAnalysisCachemethodDescriptor - method whose analysis results should be purged
public <E> void registerClassAnalysisEngine(java.lang.Class<E> analysisResultType,
IClassAnalysisEngine<E> classAnalysisEngine)
IAnalysisCache
registerClassAnalysisEngine in interface IAnalysisCacheE - analysis result typeanalysisResultType - analysis result type Class objectclassAnalysisEngine - the class analysis engine to register
public <E> void registerMethodAnalysisEngine(java.lang.Class<E> analysisResultType,
IMethodAnalysisEngine<E> methodAnalysisEngine)
IAnalysisCache
registerMethodAnalysisEngine in interface IAnalysisCacheE - analysis result typeanalysisResultType - analysis result type Class objectmethodAnalysisEngine - the method analysis engine to register
public <E> void registerDatabaseFactory(java.lang.Class<E> databaseClass,
IDatabaseFactory<E> databaseFactory)
IAnalysisCache
registerDatabaseFactory in interface IAnalysisCacheE - type of databasedatabaseClass - Class of databasedatabaseFactory - the database factorypublic <E> E getDatabase(java.lang.Class<E> databaseClass)
IAnalysisCache
getDatabase in interface IAnalysisCacheE - type of databasedatabaseClass - Class of database
public <E> void eagerlyPutDatabase(java.lang.Class<E> databaseClass,
E database)
IAnalysisCache
eagerlyPutDatabase in interface IAnalysisCacheE - type of databasedatabaseClass - Class of databasedatabase - database objectpublic IErrorLogger getErrorLogger()
IAnalysisCache
getErrorLogger in interface IAnalysisCachepublic Profiler getProfiler()
IAnalysisCache
getProfiler in interface IAnalysisCache
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||