Class BuildStringPassthruGraph

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

public class BuildStringPassthruGraph extends OpcodeStackDetector implements NonReportingDetector
Builds the database of string parameters passed from method to method unchanged.
Author:
Tagir Valeev
  • Constructor Details

    • BuildStringPassthruGraph

      public BuildStringPassthruGraph(BugReporter bugReporter)
  • Method Details

    • 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
    • shouldVisitCode

      public boolean shouldVisitCode(org.apache.bcel.classfile.Code obj)
      Description copied from class: BytecodeScanningDetector
      Check see if the Code for this method should be visited.
      Overrides:
      shouldVisitCode in class BytecodeScanningDetector
      Parameters:
      obj - Code attribute
      Returns:
      true if the Code should be visited
    • visitAfter

      public void visitAfter(org.apache.bcel.classfile.Code obj)
      Description copied from class: PreorderVisitor
      Called after visiting a code attribute
      Overrides:
      visitAfter in class PreorderVisitor
      Parameters:
      obj - Code that was just visited
    • sawOpcode

      public void sawOpcode(int seen)
      Description copied from class: OpcodeStackDetector

      By default, this method will not be called when stack is TOP. To change this behavior, override #beforeOpcode(int) and change to return true even if stack is TOP.

      see Using FindBugs for Research to learn lattice and what TOP means.

      Specified by:
      sawOpcode in class OpcodeStackDetector
      See Also: