public void insert ( final AbstractInsnNode location , final AbstractInsnNode insn ) { ++ size ; AbstractInsnNode next = location . next ; if ( next == null ) { last = insn ; } else { next . prev = insn ; } location . next = insn ; insn . next = next ; insn . prev = location ; cache = null ; insn . index = 0 ; // insn now belongs to an InsnList }
Inserts the given instruction after the specified instruction .