Package org.objectweb.asm.commons

Provides some useful class and method adapters.

Interface Summary

TableSwitchGenerator A code generator for switch statements.

Class Summary

AdviceAdapter A MethodAdapter to dispatch method body instruction

The behavior is like this:

  1. as long as the INVOKESPECIAL for the object initialization has not been reached, every bytecode instruction is dispatched in the ctor code visitor
  2. when this one is reached, it is only added in the ctor code visitor and a JP invoke is added
  3. after that, only the other code visitor receives the instructions
EmptyVisitor An empty implementation of the ASM visitor interfaces.
GeneratorAdapter A MethodAdapter with convenient methods to generate code.
LocalVariablesSorter A MethodAdapter that renumbers local variables in their order of appearance.
Method A named method descriptor.
SerialVersionUIDAdder A ClassAdapter that adds a serial version unique identifier to a class if missing.
StaticInitMerger A ClassAdapter that merges clinit methods into a single one.
Provides some useful class and method adapters.