Example usage for Java org.objectweb.asm.tree InsnList fields, constructors, methods, implement or subclass
The text is from its open source code.
int | size The number of instructions in this list. |
void | accept(final MethodVisitor methodVisitor) Makes the given visitor visit all the instructions in this list. |
void | add(final AbstractInsnNode insnNode) Adds the given instruction to the end of this list. |
void | add(final InsnList insnList) Adds the given instructions to the end of this list. |
void | clear() Removes all the instructions of this list. |
AbstractInsnNode | get(final int index) Returns the instruction whose index is given. |
AbstractInsnNode | getFirst() Returns the first instruction in this list. |
AbstractInsnNode | getLast() Returns the last instruction in this list. |
int | indexOf(final AbstractInsnNode insnNode) Returns the index of the given instruction in this list. |
void | insert(final AbstractInsnNode previousInsn, final AbstractInsnNode insnNode) Inserts the given instruction after the specified instruction. |
void | insert(final AbstractInsnNode previousInsn, final InsnList insnList) Inserts the given instructions after the specified instruction. |
void | insert(final AbstractInsnNode insnNode) Inserts the given instruction at the beginning of this list. |
void | insert(final InsnList insnList) Inserts the given instructions at the beginning of this list. |
void | insertBefore(final AbstractInsnNode nextInsn, final AbstractInsnNode insnNode) Inserts the given instruction before the specified instruction. |
void | insertBefore(final AbstractInsnNode nextInsn, final InsnList insnList) Inserts the given instructions before the specified instruction. |
ListIterator | iterator() Returns an iterator over the instructions in this list. |
ListIterator | iterator(final int index) Returns an iterator over the instructions in this list. |
void | remove(final AbstractInsnNode insnNode) Removes the given instruction from this list. |
void | set(final AbstractInsnNode oldInsnNode, final AbstractInsnNode newInsnNode) Replaces an instruction of this list with another instruction. |
AbstractInsnNode[] | toArray() Returns an array containing all the instructions in this list. |