Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected BugReporter bugReporter  
      • Fields 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, visibleTypeAnnotations
      • Fields inherited from class org.objectweb.asm.ClassVisitor

        api, cv
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ClassNodeDetector​(BugReporter bugReporter)
      Construct a ClassNodeDetector.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finishPass()
      This method is called at the end of the analysis pass.
      void visitClass​(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, visitTypeAnnotation
      • Methods inherited from class org.objectweb.asm.ClassVisitor

        getDelegate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • ClassNodeDetector

        protected ClassNodeDetector​(BugReporter bugReporter)
        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.