Class ClassNameAndSuperclassInfoAnalysisEngine
java.lang.Object
edu.umd.cs.findbugs.classfile.engine.ClassNameAndSuperclassInfoAnalysisEngine
- All Implemented Interfaces:
IAnalysisEngine<ClassDescriptor,,ClassNameAndSuperclassInfo> IClassAnalysisEngine<ClassNameAndSuperclassInfo>
public class ClassNameAndSuperclassInfoAnalysisEngine
extends Object
implements IClassAnalysisEngine<ClassNameAndSuperclassInfo>
Analysis engine to produce the ClassInfo for a loaded class. We parse just
enough information from the classfile to get the needed information.
- Author:
- David Hovemeyer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyze(IAnalysisCache analysisCache, ClassDescriptor descriptor) Perform an analysis on class or method named by given descriptor.booleanReturn true if analysis results produced by this analysis engine can be recomputed.voidregisterWith(IAnalysisCache analysisCache) Register the analysis engine with given analysis cache.
-
Constructor Details
-
ClassNameAndSuperclassInfoAnalysisEngine
public ClassNameAndSuperclassInfoAnalysisEngine()
-
-
Method Details
-
analyze
public ClassNameAndSuperclassInfo 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,ClassNameAndSuperclassInfo> - 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
Description copied from interface:IAnalysisEngineRegister the analysis engine with given analysis cache.- Specified by:
registerWithin interfaceIAnalysisEngine<ClassDescriptor,ClassNameAndSuperclassInfo> - 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<ClassNameAndSuperclassInfo>- Returns:
- true if analysis results produced by this engine can be recomputed, false if for some reason the analysis results must be retained indefinitely
-