Class JavaClassAnalysisEngine
- java.lang.Object
-
- edu.umd.cs.findbugs.classfile.engine.bcel.JavaClassAnalysisEngine
-
- All Implemented Interfaces:
IAnalysisEngine<ClassDescriptor,org.apache.bcel.classfile.JavaClass>,IClassAnalysisEngine<org.apache.bcel.classfile.JavaClass>
public class JavaClassAnalysisEngine extends java.lang.Object implements IClassAnalysisEngine<org.apache.bcel.classfile.JavaClass>
Analysis engine to produce a BCEL JavaClass object for a named class.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Constructor Description JavaClassAnalysisEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.bcel.classfile.JavaClassanalyze(IAnalysisCache analysisCache, ClassDescriptor descriptor)Perform an analysis on class or method named by given descriptor.booleancanRecompute()Return true if analysis results produced by this analysis engine can be recomputed.voidregisterWith(IAnalysisCache analysisCache)Register the analysis engine with given analysis cache.
-
-
-
Method Detail
-
analyze
public org.apache.bcel.classfile.JavaClass analyze(IAnalysisCache analysisCache, ClassDescriptor descriptor) throws CheckedAnalysisException
Description copied from interface:IAnalysisEnginePerform an analysis on class or method named by given descriptor.- Specified by:
analyzein interfaceIAnalysisEngine<ClassDescriptor,org.apache.bcel.classfile.JavaClass>- Parameters:
analysisCache- the analysis cachedescriptor- the descriptor of the class or method to be analyzed- Returns:
- the result of the analysis of the class or method
- Throws:
CheckedAnalysisException
-
registerWith
public void registerWith(IAnalysisCache analysisCache)
Description copied from interface:IAnalysisEngineRegister the analysis engine with given analysis cache.- Specified by:
registerWithin interfaceIAnalysisEngine<ClassDescriptor,org.apache.bcel.classfile.JavaClass>- Parameters:
analysisCache- the analysis cache
-
canRecompute
public boolean canRecompute()
Description copied from interface:IClassAnalysisEngineReturn true if analysis results produced by this analysis engine can be recomputed. Unless some correctness criterion prevents analysis results from being recomputed, analysis engines should return true (allowing the cache to be kept to a manageable size).- Specified by:
canRecomputein interfaceIClassAnalysisEngine<org.apache.bcel.classfile.JavaClass>- Returns:
- true if analysis results produced by this engine can be recomputed, false if for some reason the analysis results must be retained indefinitely
-
-