org.objectweb.asm.tree
Class InsnNode

java.lang.Object
  extended byorg.objectweb.asm.tree.AbstractInsnNode
      extended byorg.objectweb.asm.tree.InsnNode

public class InsnNode
extends AbstractInsnNode

A node that represents a zero operand instruction.

Author:
Eric Bruneton

Field Summary
 
Fields inherited from class org.objectweb.asm.tree.AbstractInsnNode
FIELD_INSN, IINC_INSN, INSN, INT_INSN, JUMP_INSN, LABEL, LDC_INSN, LOOKUPSWITCH_INSN, METHOD_INSN, MULTIANEWARRAY_INSN, opcode, TABLESWITCH_INSN, TYPE_INSN, VAR_INSN
 
Method Summary
 void accept(MethodVisitor mv)
          Makes the given visitor visit this instruction.
static InsnNode getByOpcode(int opcode)
           
 int getType()
          Returns the type of this instruction.
 
Methods inherited from class org.objectweb.asm.tree.AbstractInsnNode
getOpcode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getByOpcode

public static final InsnNode getByOpcode(int opcode)

accept

public void accept(MethodVisitor mv)
Makes the given visitor visit this instruction.

Specified by:
accept in class AbstractInsnNode
Parameters:
mv - a method visitor.

getType

public int getType()
Description copied from class: AbstractInsnNode
Returns the type of this instruction.

Specified by:
getType in class AbstractInsnNode
Returns:
the type of this instruction, i.e. one the constants defined in this class.