public class DgmConverter
extends Object
Generates GeneratedMetaMethod adapter classes and metadata for the
default Groovy methods.
| Modifiers | Name | Description |
|---|---|---|
static String |
PROXY_FACTORY_CLASS_NAME |
Binary name of the generated adapter factory; GeneratedMetaMethod.Proxy loads it by this constant. |
static int |
PROXY_FACTORY_SHARD_SIZE |
Adapters per factory shard method. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected static void |
loadParameters(CachedMethod method, org.objectweb.asm.MethodVisitor mv)Loads and casts the non-receiver arguments for the supplied cached method from an Object[] local variable. |
|
public static void |
main(String[] args)Generates DGM adapter classes into the target directory. |
Binary name of the generated adapter factory; GeneratedMetaMethod.Proxy loads it by this constant.
Adapters per factory shard method. Each case costs sixteen bytes of bytecode including its switch-table entry, so a shard stays under HotSpot's 8000-byte limit for JIT compilation, with room for DGM to grow.
Loads and casts the non-receiver arguments for the supplied cached
method from an Object[] local variable.
method - the cached method whose parameters are being loadedmv - the visitor receiving the bytecode instructionsGenerates DGM adapter classes into the target directory.
args - optional --info flag and target directory