Package edu.umd.cs.findbugs.asm
Class ClassNodeDetector
java.lang.Object
org.objectweb.asm.ClassVisitor
org.objectweb.asm.tree.ClassNode
edu.umd.cs.findbugs.asm.ClassNodeDetector
- All Implemented Interfaces:
Detector2,Priorities
- Direct Known Subclasses:
CheckRelaxingNullnessAnnotation,TestASM
public abstract class ClassNodeDetector
extends org.objectweb.asm.tree.ClassNode
implements Detector2
Abstract base class to to reduce boilerplate needed for writing ASM-based
Detectors implemented as ClassNode visitors
- Author:
- pugh
-
Field Summary
FieldsFields inherited from class org.objectweb.asm.tree.ClassNode
access, attrs, fields, innerClasses, interfaces, invisibleAnnotations, invisibleTypeAnnotations, methods, module, name, nestHostClass, nestMembers, outerClass, outerMethod, outerMethodDesc, permittedSubclasses, recordComponents, signature, sourceDebug, sourceFile, superName, version, visibleAnnotations, visibleTypeAnnotationsFields inherited from class org.objectweb.asm.ClassVisitor
api, cvFields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClassNodeDetector(BugReporter bugReporter) Construct a ClassNodeDetector. -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called at the end of the analysis pass.protected XClassgetClassInfo(ClassDescriptor classDescr) voidvisitClass(ClassDescriptor classDescriptor) Visit a class.Methods inherited from class org.objectweb.asm.tree.ClassNode
accept, check, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotationMethods inherited from class org.objectweb.asm.ClassVisitor
getDelegateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.umd.cs.findbugs.Detector2
getDetectorClassName
-
Field Details
-
bugReporter
-
xclass
-
-
Constructor Details
-
ClassNodeDetector
Construct a ClassNodeDetector. The bugReporter is passed to the constructor and stored in a protected final field.- Parameters:
bugReporter- the BugReporter that bug should be reporter to.
-
-
Method Details
-
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
-
getClassInfo
-
finishPass
public void finishPass()Description copied from interface:Detector2This method is called at the end of the analysis pass.- Specified by:
finishPassin interfaceDetector2
-