예제 #1
0
 public static void insertNodeBefore(
     @NotNull MethodNode from, @NotNull MethodNode to, @NotNull AbstractInsnNode beforeNode) {
   InsnList instructions = to.instructions;
   ListIterator<AbstractInsnNode> iterator = from.instructions.iterator();
   while (iterator.hasNext()) {
     AbstractInsnNode next = iterator.next();
     instructions.insertBefore(beforeNode, next);
   }
 }