Class NoteDirectlyRelevantTypeQualifiers

All Implemented Interfaces:
Detector, FirstPassDetector, NonReportingDetector, Priorities, Constants2, org.apache.bcel.classfile.Visitor, org.apache.bcel.Constants

public class NoteDirectlyRelevantTypeQualifiers extends DismantleBytecode implements Detector, NonReportingDetector
Scan methods for directly-relevant type qualifiers, building the DirectlyRelevantTypeQualifiersDatabase. This helps the CheckTypeQualifiers detector figure out which type qualifiers to check for each method.
  • Constructor Details

    • NoteDirectlyRelevantTypeQualifiers

      public NoteDirectlyRelevantTypeQualifiers(BugReporter bugReporter)
  • Method Details

    • visitClassContext

      public void visitClassContext(ClassContext classContext)
      Description copied from interface: Detector
      Visit the ClassContext for a class which should be analyzed for instances of bug patterns.
      Specified by:
      visitClassContext in interface Detector
      Parameters:
      classContext - the ClassContext
    • visit

      public void visit(org.apache.bcel.classfile.Code m)
      Overrides:
      visit in class DismantleBytecode
    • sawOpcode

      public void sawOpcode(int seen)
      Overrides:
      sawOpcode in class DismantleBytecode
    • report

      public void report()
      Description copied from interface: Detector
      This method is called after all classes to be visited. It should be used by any detectors which accumulate information over all visited classes to generate results.
      Specified by:
      report in interface Detector