org.objectweb.asm.commons

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Byte Code » asm » org.objectweb.asm.commons 
org.objectweb.asm.commons
Provides some useful class and method adapters. The preferred way of using these adapters is by chaining them together and to custom adapters (instead of inheriting from them). Indeed this approach provides more combination possibilities than inheritance. For instance, suppose you want to implement an adapter MyAdapter than needs sorted local variables and intermediate stack map frame values taking into account the local variables sort. By using inheritance, this would require MyAdapter to extend AnalyzerAdapter, itself extending LocalVariablesSorter. But AnalyzerAdapter is not a subclass of LocalVariablesSorter, so this is not possible. On the contrary, by using delegation, you can make LocalVariablesSorter delegate to AnalyzerAdapter, itself delegating to MyAdapter. In this case AnalyzerAdapter computes intermediate frames based on the output of LocalVariablesSorter, and MyAdapter can add new locals by calling the newLocal method on LocalVariablesSorter, and can get the stack map frame state before each instruction by reading the locals and stack fields in AnalyzerAdapter (this requires references from MyAdapter back to LocalVariablesSorter and AnalyzerAdapter).
Java Source File NameTypeComment
AdviceAdapter.javaClass A org.objectweb.asm.MethodAdapter to insert before, after and around advices in methods and constructors.
AdviceAdapterTest.javaClass AdviceAdapter tests.
AdviceAdapterUnitTest.javaClass
AnalyzerAdapter.javaClass A MethodAdapter that keeps track of stack map frame changes between AnalyzerAdapter.visitFrame(int,int,Object[],int,Object[]) visitFrame calls.
AnalyzerAdapterTest.javaClass AnalyzerAdapter tests.
CodeSizeEvaluator.javaClass A MethodAdapter that can be used to approximate method size.
CodeSizeEvaluatorTest.javaClass
EmptyVisitor.javaClass An empty implementation of the ASM visitor interfaces.
GASMifierClassVisitor.javaClass Sub class of the ASMifier class visitor used to test GeneratorAdapter.
GASMifierMethodVisitor.javaClass A MethodVisitor that prints the ASM code that generates the methods it visits by using the GeneratorAdapter class.
GASMifierTest.javaClass GASMifier tests.
GeneratorAdapter.javaClass A org.objectweb.asm.MethodAdapter with convenient methods to generate code.
JSRInlinerAdapter.javaClass A org.objectweb.asm.MethodAdapter that removes JSR instructions and inlines the referenced subroutines.
JSRInlinerAdapterTest.javaClass JSRInliner tests.
JSRInlinerAdapterUnitTest.javaClass
LocalVariablesSorter.javaClass A MethodAdapter that renumbers local variables in their order of appearance.
LocalVariablesSorterTest.javaClass LocalVariableSorter tests.
LocalVariablesSorterTest2.javaClass LocalVariablesSorter tests.
Method.javaClass A named method descriptor.
Remapper.javaClass A class responsible for remapping types and names.
RemappingAnnotationAdapter.javaClass An AnnotationVisitor adapter for type remapping.
RemappingClassAdapter.javaClass A ClassAdapter for type remapping.
RemappingClassAdapterTest.javaClass
RemappingClassAdapterTest2.javaClass
RemappingFieldAdapter.javaClass A FieldVisitor adapter for type remapping.
RemappingMethodAdapter.javaClass A MethodAdapter for type mapping.
RemappingSignatureAdapter.javaClass A SignatureVisitor adapter for type mapping.
SerialVersionUIDAdder.javaClass A ClassAdapter that adds a serial version unique identifier to a class if missing.
SerialVersionUIDAdderTest.javaClass SerialVerionUIDAdder tests.
SerialVersionUIDAdderUnitTest.javaClass Test for the SerialVerionUid computation.
SimpleRemapper.javaClass
StaticInitMerger.javaClass A ClassAdapter that merges clinit methods into a single one.
StaticInitMergerTest.javaClass StaticInitMerger tests.
TableSwitchGenerator.javaInterface A code generator for switch statements.
w_w_w___.___j___a___va__2_s__.__c___o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.