org.objectweb.asm.tree

Class AbstractInsnNode

Known Direct 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

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.

Field Details

opcode

protected int opcode
The opcode of this instruction.

Constructor Details

AbstractInsnNode

protected AbstractInsnNode(int opcode)
Parameters:
opcode - the opcode of the instruction to be constructed.

Method Details

accept

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

getOpcode

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