| java.lang.Object com.tc.asm.tree.AbstractInsnNode
All known Subclasses: com.tc.asm.tree.MultiANewArrayInsnNode, com.tc.asm.tree.TableSwitchInsnNode, com.tc.asm.tree.JumpInsnNode, com.tc.asm.tree.LabelNode, com.tc.asm.tree.IincInsnNode, com.tc.asm.tree.LineNumberNode, com.tc.asm.tree.MethodInsnNode, com.tc.asm.tree.VarInsnNode, com.tc.asm.tree.InsnNode, com.tc.asm.tree.LookupSwitchInsnNode, com.tc.asm.tree.LdcInsnNode, com.tc.asm.tree.FrameNode, com.tc.asm.tree.IntInsnNode, com.tc.asm.tree.TypeInsnNode, com.tc.asm.tree.FieldInsnNode,
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. |
|
|