为了账号安全,请及时绑定邮箱和手机立即绑定

ASM库中MethodNode的'visitMethodInsn'方法的实现

ASM库中MethodNode的'visitMethodInsn'方法的实现

偶然的你 2021-04-07 17:14:43
这是类visitMethodInsn方法的主体MethodNode:  @Override  public void visitMethodInsn(      final int opcode,      final @InternalForm String owner,      final @Identifier String name,      final @MethodDescriptor String descriptor,      final boolean isInterface) {    if (api < Opcodes.ASM5) {      super.visitMethodInsn(opcode, owner, name, descriptor, isInterface);      return;    }    instructions.add(new MethodInsnNode(opcode, owner, name, descriptor, isInterface));  }如您所见,instructions list如果asm api版本小于,则不会将字节码添加到5。背后的原因是什么?
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 817 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信