【ASM】字节码操作 ASM 案例实战

在这里插入图片描述

1.案例1-生成接口

我们第一个目标是生成一个接口

package sample;

public interface HelloWorld {
   
    
    
}

首先我们有一个实体类的class文件
在这里插入图片描述
然后运行如下代码

public static void creatahelloWrodInterface(

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/124572668
ASM