开发者

Instrumentation

开发者 https://www.devze.com 2023-01-21 15:55 出处:网络
I am new to ASM(byte code manipulation kit) and am using it to instrument java byte code. I want to access the methods of a class and change their access modifiers using ASM. Does someone have an idea

I am new to ASM(byte code manipulation kit) and am using it to instrument java byte code. I want to access the methods of a class and change their access modifiers using ASM. Does someone have an idea about how to achieve this? I know that calling开发者_StackOverflow社区 visitMethod would help but do not know how to do that exactly Any information on this would be helpful. Thank you.


http://download.forge.objectweb.org/asm/asm-guide.pdf

See pages 16 and 22.

0

精彩评论

暂无评论...
验证码 换一张
取 消