Package clojure.asm.commons

Provides some useful class and method adapters.

See:
          
Description

Interface Summary
TableSwitchGeneratorA code generator for switch statements.
 

Class Summary
AdviceAdapterA MethodVisitor to insert before, after and around advices in methods and constructors.
AnalyzerAdapterA MethodVisitor that keeps track of stack map frame changes between visitFrame calls.
CodeSizeEvaluatorA MethodVisitor that can be used to approximate method size.
GeneratorAdapterA MethodVisitor with convenient methods to generate code.
InstructionAdapterA MethodVisitor providing a more detailed API to generate and transform instructions.
LocalVariablesSorterA MethodVisitor that renumbers local variables in their order of appearance.
MethodA named method descriptor.
SerialVersionUIDAdderA ClassVisitor that adds a serial version unique identifier to a class if missing.
StaticInitMergerA ClassVisitor that merges clinit methods into a single one.
 

Package clojure.asm.commons Description

Provides some useful class and method adapters. The preferred way of usingthese adapters is by chaining them together and to custom adapters (instead ofinheriting from them). Indeed this approach provides more combinationpossibilities than inheritance. For instance, suppose you want to implement anadapter MyAdapter than needs sorted local variables and intermediate stack mapframe values taking into account the local variables sort. By using inheritance,this would require MyAdapter to extend AnalyzerAdapter, itself extendingLocalVariablesSorter. But AnalyzerAdapter is not a subclass ofLocalVariablesSorter, so this is not possible. On the contrary, by usingdelegation, you can make LocalVariablesSorter delegate to AnalyzerAdapter,itself delegating to MyAdapter. In this case AnalyzerAdapter computesintermediate frames based on the output of LocalVariablesSorter, and MyAdaptercan add new locals by calling the newLocal method on LocalVariablesSorter, andcan get the stack map frame state before each instruction by reading the localsand stack fields in AnalyzerAdapter (this requires references from MyAdapterback to LocalVariablesSorter and AnalyzerAdapter).



Copyright © 2016. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14