ObjectWeb ASM
Encyclopedia : O : OB : OBJ : ObjectWeb ASM
The ASM library is a project of the ObjectWeb consortium. It provides a simple API for decomposing, modifying, and recomposing binary Java classes (i.e. bytecode). The project was originally conceived and developed by Eric Bruneton. ASM is Java-centric at present, and does not currently have a backend that exposes other bytecode implementations (such as .NET bytecode, Python bytecode, etc.).
Uses
ASM provides a simple library that exposes the internal aggregate components of a given Java class through its visitor oriented API. ASM also provides, on top of this visitor API, a tree API that represents classes as object constructs. Both APIs can be used for modifying the binary bytecode, as well as generating new bytecode (via injection of new code into the existing code, or through generation of new classes altogether.) The ASM library has been used in several diverse applications, such as:- Performance and Profiling
- Instrumentation calls that capture performance metrics can be injected into Java class binaries to examine memory/coverage data. (For example, injecting instrumentation at entry/exit points.)
External links
- [ASM Library] - The ASM Project Home Page.
- [ASM-Based Project Listing] - A listing of projects that make use of the ASM Library.
- [ObjectWeb Home] - The ObjectWeb Home Page.
- [AspectWerkz] - The AspectWerkz Project Home Page. (One of the high-visibility projects that makes use of ASM.)
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
