Class SurroundingTryCatchMethodAdapter

java.lang.Object
org.objectweb.asm.MethodVisitor
de.uzl.its.swat.instrument.AbstractMethodAdapter
de.uzl.its.swat.instrument.symbolicwrapper.SurroundingTryCatchMethodAdapter

public class SurroundingTryCatchMethodAdapter extends AbstractMethodAdapter
A visitor to visit a Java method This class surrounds the whole function with a try catch blog to ad a solve in case of an error.
  • Constructor Details

    • SurroundingTryCatchMethodAdapter

      public SurroundingTryCatchMethodAdapter(org.objectweb.asm.MethodVisitor mv, String name, String desc)
      Constructor that calls the super from the default MethodVisitor
      Parameters:
      mv - Parent MethodVisitor
      name - The method name
  • Method Details

    • visitMaxs

      public void visitMaxs(int maxStack, int maxLocals)
      Add a solve in case an exception happened inside the method
      Overrides:
      visitMaxs in class org.objectweb.asm.MethodVisitor
      Parameters:
      maxStack -
      maxLocals -
    • visitCode

      public void visitCode()
      Overrides:
      visitCode in class org.objectweb.asm.MethodVisitor