public class CGUtils
extends java.lang.Object
Code generation utilities.
| Constructor and Description |
|---|
CGUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
adaptFromType(org.objectweb.asm.MethodVisitor method,
java.lang.Class<?> type)
Emit instructions that adapt the current stack contents to
Object. |
static int |
adaptToType(org.objectweb.asm.MethodVisitor method,
java.lang.Class<?> type)
Emit instructions that adapt the current stack (an Object) to a possibly primitive target type.
|
public static int adaptToType(org.objectweb.asm.MethodVisitor method,
java.lang.Class<?> type)
Emit instructions that adapt the current stack (an Object) to a possibly primitive target type.
method - The method to which code should be added.type - The target type.public static void adaptFromType(org.objectweb.asm.MethodVisitor method,
java.lang.Class<?> type)
Emit instructions that adapt the current stack contents to Object.
method - The method.type - The type of the current stack contents, possibly primitive.