Class CFGDetector
java.lang.Object
edu.umd.cs.findbugs.bcel.CFGDetector
- All Implemented Interfaces:
Detector2, Priorities
- Direct Known Subclasses:
CheckTypeQualifiers, FindUnsatisfiedObligation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClassContextprotected org.apache.bcel.classfile.MethodFields inherited from interface Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called at the end of the analysis pass.voidvisitClass(ClassDescriptor classDescriptor) Visit a class.protected abstract voidvisitMethodCFG(MethodDescriptor methodDescriptor, CFG cfg) Visit the CFG (control flow graph) of a method to be analyzed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Detector2
getDetectorClassName
-
Field Details
-
classContext
-
method
protected org.apache.bcel.classfile.Method method
-
-
Constructor Details
-
CFGDetector
public CFGDetector()
-
-
Method Details
-
finishPass
public void finishPass()Description copied from interface:Detector2This method is called at the end of the analysis pass.- Specified by:
finishPassin interfaceDetector2
-
visitClass
Description copied from interface:Detector2Visit a class.- Specified by:
visitClassin interfaceDetector2- Parameters:
classDescriptor- descriptor naming the class to visit- Throws:
CheckedAnalysisException- if an exception occurs during analysis
-
visitMethodCFG
protected abstract void visitMethodCFG(MethodDescriptor methodDescriptor, CFG cfg) throws CheckedAnalysisException Visit the CFG (control flow graph) of a method to be analyzed. Should be overridden by subclasses.- Parameters:
methodDescriptor-cfg-- Throws:
CheckedAnalysisException
-