Class MethodAppender

    • Constructor Detail

      • MethodAppender

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

      • append

        protected abstract void append​(CodeGenerator g)
        Generates code to be appended right before the return statement.
      • newAdapter

        public org.objectweb.asm.MethodVisitor newAdapter​(org.objectweb.asm.MethodVisitor base,
                                                          int access,
                                                          String name,
                                                          String desc,
                                                          String signature,
                                                          String[] exceptions)
        Description copied from class: MethodTransformSpec
        Creates a visitor that receives the original method definition and writes the transformed method to the given base.
        Specified by:
        newAdapter in class MethodTransformSpec