org.objectweb.asm.tree
Class AbstractInsnNode

java.lang.Object
  extended by org.objectweb.asm.tree.AbstractInsnNode
Direct Known Subclasses:
FieldInsnNode, IincInsnNode, InsnNode, IntInsnNode, JumpInsnNode, LdcInsnNode, LookupSwitchInsnNode, MethodInsnNode, MultiANewArrayInsnNode, TableSwitchInsnNode, TypeInsnNode, VarInsnNode

public abstract class AbstractInsnNode
extends Object

A node that represents a bytecode instruction.

Author:
Eric Bruneton

Field Summary
protected  int opcode
          The opcode of this instruction.
 
Constructor Summary
protected AbstractInsnNode(int opcode)
          Constructs a new AbstractInsnNode object.
 
Method Summary
abstract  void accept(CodeVisitor cv)
          Makes the given code visitor visit this instruction.
 int getOpcode()
          Returns the opcode of this instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opcode

protected int opcode
The opcode of this instruction.

Constructor Detail

AbstractInsnNode

protected AbstractInsnNode(int opcode)
Constructs a new AbstractInsnNode object.

Parameters:
opcode - the opcode of the instruction to be constructed.
Method Detail

getOpcode

public int getOpcode()
Returns the opcode of this instruction.

Returns:
the opcode of this instruction.

accept

public abstract void accept(CodeVisitor cv)
Makes the given code visitor visit this instruction.

Parameters:
cv - a code visitor.