final class BytecodeTasks
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
BytecodeTasks() |
Modifier and Type | Method and Description |
---|---|
static void |
box(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type primitiveType)
Boxes a primitive value on the Java stack.
|
static int |
loadArgument(org.objectweb.asm.MethodVisitor mv,
java.lang.Class<?> parameterType,
int slot)
Loads a local argument onto the Java stack and returns the size of the argument.
|
static void |
packArguments(org.objectweb.asm.MethodVisitor mv,
java.lang.Class<?>[] parameterTypes)
Packs local arguments into an argument array on the Java stack.
|
static void |
pushInteger(org.objectweb.asm.MethodVisitor mv,
int value)
Pushes an integer onto the stack, choosing the most efficient opcode.
|
static void |
unbox(org.objectweb.asm.MethodVisitor mv,
org.objectweb.asm.Type primitiveType)
Unboxes a boxed value on the Java stack.
|
static void |
unpackArguments(org.objectweb.asm.MethodVisitor mv,
java.lang.Class<?>[] parameterTypes)
Unpacks an array of arguments and pushes them onto the Java stack.
|
public static void pushInteger(org.objectweb.asm.MethodVisitor mv, int value)
public static void packArguments(org.objectweb.asm.MethodVisitor mv, java.lang.Class<?>[] parameterTypes)
public static void unpackArguments(org.objectweb.asm.MethodVisitor mv, java.lang.Class<?>[] parameterTypes)
public static int loadArgument(org.objectweb.asm.MethodVisitor mv, java.lang.Class<?> parameterType, int slot)
public static void box(org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type primitiveType)
public static void unbox(org.objectweb.asm.MethodVisitor mv, org.objectweb.asm.Type primitiveType)