| java.lang.Object org.ejb3unit.asm.tree.AbstractInsnNode
All known Subclasses: org.ejb3unit.asm.tree.JumpInsnNode, org.ejb3unit.asm.tree.LdcInsnNode, org.ejb3unit.asm.tree.LineNumberNode, org.ejb3unit.asm.tree.InsnNode, org.ejb3unit.asm.tree.VarInsnNode, org.ejb3unit.asm.tree.FrameNode, org.ejb3unit.asm.tree.MultiANewArrayInsnNode, org.ejb3unit.asm.tree.TypeInsnNode, org.ejb3unit.asm.tree.IntInsnNode, org.ejb3unit.asm.tree.MethodInsnNode, org.ejb3unit.asm.tree.LookupSwitchInsnNode, org.ejb3unit.asm.tree.TableSwitchInsnNode, org.ejb3unit.asm.tree.FieldInsnNode, org.ejb3unit.asm.tree.IincInsnNode, org.ejb3unit.asm.tree.LabelNode,
AbstractInsnNode | abstract public class AbstractInsnNode (Code) | | A node that represents a bytecode instruction. An instruction can appear
at most once in at most one
InsnList at a time.
author: Eric Bruneton |
Method Summary | |
abstract public void | accept(MethodVisitor cv) Makes the given code visitor visit this instruction. | abstract public AbstractInsnNode | clone(Map labels) Returns a copy of this instruction.
Parameters: labels - a map from LabelNodes to cloned LabelNodes. | static LabelNode | clone(LabelNode label, Map map) Returns the clone of the given label.
Parameters: label - a label. Parameters: map - a map from LabelNodes to cloned LabelNodes. | static LabelNode[] | clone(List labels, Map map) Returns the clones of the given labels.
Parameters: labels - a list of labels. Parameters: map - a map from LabelNodes to cloned LabelNodes. | public AbstractInsnNode | getNext() Returns the next instruction in the list to which this instruction
belongs, if any.
the next instruction in the list to which this instructionbelongs, if any. | public int | getOpcode() Returns the opcode of this instruction. | public AbstractInsnNode | getPrevious() Returns the previous instruction in the list to which this instruction
belongs, if any.
the previous instruction in the list to which this instructionbelongs, if any. | abstract public int | getType() Returns the type of this instruction.
the type of this instruction, i.e. |
FRAME | final public static int FRAME(Code) | | The type of
FrameNode "instructions".
|
INSN | final public static int INSN(Code) | | The type of
InsnNode instructions.
|
LABEL | final public static int LABEL(Code) | | The type of
LabelNode "instructions".
|
index | int index(Code) | | Index of this instruction in the list to which it belongs. The value of
this field is correct only when
InsnList.cache is not null. A
value of -1 indicates that this instruction does not belong to any
InsnList .
|
opcode | protected int opcode(Code) | | The opcode of this instruction.
|
AbstractInsnNode | protected AbstractInsnNode(int opcode)(Code) | | Constructs a new
AbstractInsnNode .
Parameters: opcode - the opcode of the instruction to be constructed. |
accept | abstract public void accept(MethodVisitor cv)(Code) | | Makes the given code visitor visit this instruction.
Parameters: cv - a code visitor. |
clone | abstract public AbstractInsnNode clone(Map labels)(Code) | | Returns a copy of this instruction.
Parameters: labels - a map from LabelNodes to cloned LabelNodes. a copy of this instruction. The returned instruction does notbelong to any InsnList. |
clone | static LabelNode clone(LabelNode label, Map map)(Code) | | Returns the clone of the given label.
Parameters: label - a label. Parameters: map - a map from LabelNodes to cloned LabelNodes. the clone of the given label. |
clone | static LabelNode[] clone(List labels, Map map)(Code) | | Returns the clones of the given labels.
Parameters: labels - a list of labels. Parameters: map - a map from LabelNodes to cloned LabelNodes. the clones of the given labels. |
getNext | public AbstractInsnNode getNext()(Code) | | Returns the next instruction in the list to which this instruction
belongs, if any.
the next instruction in the list to which this instructionbelongs, if any. May be null. |
getOpcode | public int getOpcode()(Code) | | Returns the opcode of this instruction.
the opcode of this instruction. |
getPrevious | public AbstractInsnNode getPrevious()(Code) | | Returns the previous instruction in the list to which this instruction
belongs, if any.
the previous instruction in the list to which this instructionbelongs, if any. May be null. |
getType | abstract public int getType()(Code) | | Returns the type of this instruction.
the type of this instruction, i.e. one the constants defined inthis class. |
|
|