Class RuntimeExceptionCapture

All Implemented Interfaces:
Detector, Priorities, StatelessDetector, Cloneable, org.apache.bcel.classfile.Visitor

public class RuntimeExceptionCapture extends OpcodeStackDetector implements StatelessDetector
RuntimeExceptionCapture
Author:
Brian Goetz, Bill Pugh, David Hovemeyer
  • Constructor Details

    • RuntimeExceptionCapture

      public RuntimeExceptionCapture(BugReporter bugReporter)
  • Method Details

    • visitJavaClass

      public void visitJavaClass(org.apache.bcel.classfile.JavaClass c)
      Specified by:
      visitJavaClass in interface org.apache.bcel.classfile.Visitor
      Overrides:
      visitJavaClass in class PreorderVisitor
    • 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
    • visit

      public void visit(org.apache.bcel.classfile.CodeException obj)
      Overrides:
      visit in class BetterVisitor
    • 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: