ASM简介

官网地址:http://asm.ow2.org/index.html

ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes or dynamically generate classes, directly in binary form. Provided common transformations and analysis algorithms allow to easily assemble custom complex transformations and code analysis tools.

ASM offer similar functionality as other bytecode frameworks, but it is focused on simplicity of use and performance. Because it was designed and implemented to be as small and as fast as possible, it makes it very attractive for using in dynamic systems*.

(*) ASM can of course be used in a static way too.

ASM是一个通用的JAVA字节码操作和分析框架。它能够动态编辑类代码或者动态生成类。 ASM提供公共的转换和算法分析可以容易形成复杂的代码转换和代码分析工具。

ASM相对于其他字节码框架来说。它的代码生成效率高且实现比较小巧。ASM在动态系统的使用中非常让人关注。另外ASM也可以用在静态代码中。

原文地址:https://www.cnblogs.com/hzhuxin/p/2432000.html