Class MethodTransformSpec

java.lang.Object
org.kohsuke.file_leak_detector.transform.MethodTransformSpec
Direct Known Subclasses:
MethodAppender

public abstract class MethodTransformSpec extends Object
Transforms a specific method.
Author:
Kohsuke Kawaguchi
  • Field Details

    • name

      public final String name
      Name of the method to transform.
    • desc

      public final String desc
      Method signature.
  • Constructor Details

    • MethodTransformSpec

      public MethodTransformSpec(String name, String desc)
  • Method Details

    • newAdapter

      public abstract org.objectweb.asm.MethodVisitor newAdapter(org.objectweb.asm.MethodVisitor base, int access, String name, String desc, String signature, String[] exceptions)
      Creates a visitor that receives the original method definition and writes the transformed method to the given base.