Class BuildInterproceduralCallGraph

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

public class BuildInterproceduralCallGraph extends BytecodeScanningDetector implements NonReportingDetector
Build the interprocedural call graph. NOTE: at the present time, this facility is only used to find relevant type qualifiers. It could become a more general-purpose facility if there were a need.
Author:
David Hovemeyer
  • Constructor Details

    • BuildInterproceduralCallGraph

      public BuildInterproceduralCallGraph(BugReporter bugReporter)
      Constructor.
      Parameters:
      bugReporter - the BugReporter to use
  • 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
      Overrides:
      visitClassContext in class BytecodeScanningDetector
      Parameters:
      classContext - the ClassContext
    • visitMethod

      public void visitMethod(org.apache.bcel.classfile.Method obj)
      Specified by:
      visitMethod in interface org.apache.bcel.classfile.Visitor
      Overrides:
      visitMethod in class BetterVisitor
    • 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
      Overrides:
      report in class BytecodeScanningDetector