Class MethodTransformSpec

  • Direct Known Subclasses:
    MethodAppender

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

      • name

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

        public final String desc
        Method signature.
    • Constructor Detail

      • MethodTransformSpec

        public MethodTransformSpec​(String name,
                                   String desc)
    • Method Detail

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