Instrumentation
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.
精彩评论