Overview of ASM Library Structure
ASM is a Java bytecode analysis and manipulation tool that allows developers to embed debug code or modify class behavior without source code. The library is organized into several packages:
- Core: Provides basic APIs for reading, writing, and transforming Java bytecode.
- Tree: Represents Java bytecode in a memory-resident tree structure.
- Analysis: Provides data flow statistics and type checking algorithms for bytecode stored in the Tree package.
- Commons: Contains adapters and utilities to simplify bytecode generation and transformation.
- Util: Helper classes for simple bytecode modifications during development and testing.
- XML: An adapter to convert XML/SAX-compliant structures into bytecode, allowing XSLT for transformations.