de.unkrig.commons.asm
Class InsnUtil
java.lang.Object
de.unkrig.commons.asm.InsnUtil
public final class InsnUtil
- extends java.lang.Object
A utility class for handling of ASM instruction lists.
|
Method Summary |
static org.objectweb.asm.tree.InsnList |
il(org.objectweb.asm.tree.AbstractInsnNode... ains)
|
static org.objectweb.asm.tree.InsnList |
il(org.objectweb.asm.tree.AbstractInsnNode ain)
|
static org.objectweb.asm.tree.InsnList |
oa(org.objectweb.asm.tree.InsnList... il)
|
static org.objectweb.asm.tree.InsnList |
oa(java.util.List<org.objectweb.asm.tree.InsnList> insnLists)
|
static org.objectweb.asm.tree.AbstractInsnNode |
push(java.lang.Object constantValue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
il
public static org.objectweb.asm.tree.InsnList il(org.objectweb.asm.tree.AbstractInsnNode ain)
- Returns:
- An
InsnList with the single instruction ain.
il
public static org.objectweb.asm.tree.InsnList il(org.objectweb.asm.tree.AbstractInsnNode... ains)
- Returns:
- An
InsnList that contains the given instruction nodes.
oa
public static org.objectweb.asm.tree.InsnList oa(org.objectweb.asm.tree.InsnList... il)
- Parameters:
il - InsnLists that each create exactly one Object on the operand stack
- Returns:
- Code that produces an object array filled with the values produced by the
ils
oa
public static org.objectweb.asm.tree.InsnList oa(java.util.List<org.objectweb.asm.tree.InsnList> insnLists)
- Parameters:
insnLists - InsnLists that each create exactly one Object on the operand stack
- Returns:
- Code that produces an object array filled with the values produced by the
insnLists
push
public static org.objectweb.asm.tree.AbstractInsnNode push(@Nullable
java.lang.Object constantValue)
- Returns:
- Code that puts the given constant value on the operand stack