[ASM] Bytecode operation converts existing class ClassReader Delete method Add method


insert image description here

1 Overview

Previous article: [ASM] Bytecode operations convert existing classes ClassReader Modify field information Delete fields Add fields In the previous article, we learned how to add fields and delete fields.

In this chapter we try to modify the method and delete the method.

2. Case

2.1 Delete method

Suppose there is a DeleteClassMethod class as follows, we want to remove the add method in this class

public class DeleteClassMethod {
   
    
    

    

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/125018478