ObjectWeb ASM

ObjectWeb ASM
ObjectWeb ASM
Developer(s) OW2 Consortium
Stable release 4.0 / October 29, 2011; 19 days ago (2011-10-29)
Written in Java
Operating system Cross-platform
Type bytecode Engineering Library
License BSD License
Website http://asm.objectweb.org/

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.).

Contents

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.)
  • Implementation of New Language Semantics
For example, Groovy uses ASM to generate its bytecode. Also, Aspect-Oriented additions to the Java language have been implemented by using ASM to decompose class structures for point-cut identification, and then again when reconstituting the class by injecting aspect-related code back into the binary. (See: AspectWerkz)

Invokedynamic

Since version 3.2, ASM has added support for the new invokedynamic code, which allows method invocation relying on dynamic type checking on the latest JDK 7 binaries, thus easing support for dynamically typed languages[1][2].

See also

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • ASM — may refer to:Codes: * American Samoa (ISO 3166 1 country code) * Asmara International Airport (IATA airport code) * Assamese language (ISO 639 language code)Computer science: * ObjectWeb ASM, a Java library for bytecode modification and analysis… …   Wikipedia

  • ASM (logiciel) — ASM est une bibliothèque Java de manipulation et d analyse du bytecode Java. ASM est publié sous licence BSD par le consortium ObjectWeb, devenu OW2. ASM peut être utilisée pour modifier des classes existantes ou créer dynamiquement des classes,… …   Wikipédia en Français

  • Javassist — infobox software developer = Shigeru Chiba released = latest release version = 3.8.0GA latest release date = release date|2008|01|21 programming language = Java operating system = Cross platform genre = bytecode Engineering Library license = dual …   Wikipedia

  • Byte Code Engineering Library — Infobox Software name = Jakarta BCEL caption = developer = Apache Software Foundation latest release version = 5.2 latest release date = release date|2006|06|06 latest preview version = latest preview date = operating system = Cross platform… …   Wikipedia

  • DjUnit — is an Eclipse plug in that generates code coverage reports, tests with mock objects, and provides simple trace information about test cases. djUnit plugin is JUnit TestRunner with the custom classloader. djUnit ClassLoader modifies class in… …   Wikipedia

  • XPDL — The XML Process Definition Language (XPDL) is a format standardized by the Workflow Management Coalition (WfMC) to interchange Business Process definitions between different workflow products like business process modeling tools and business… …   Wikipedia

  • EasyBeans — Infobox Software name = EasyBeans caption = developer = OW2 Consortium latest release version = 1.0.1 latest release date = release date|2008|07|04 latest preview version = latest preview date = operating system = Cross platform programming… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”