org.objectweb.asm.tree

Class AbstractInsnNode

public abstract class AbstractInsnNode extends Object

A node that represents a bytecode instruction.

Author: Eric Bruneton

Field Summary
protected intopcode
The opcode of this instruction.
Constructor Summary
protected AbstractInsnNode(int opcode)
Constructs a new {@link AbstractInsnNode AbstractInsnNode} object.
Method Summary
abstract voidaccept(CodeVisitor cv)
Makes the given code visitor visit this instruction.
intgetOpcode()
Returns the opcode of this instruction.

Field Detail

opcode

protected int opcode
The opcode of this instruction.

Constructor Detail

AbstractInsnNode

protected AbstractInsnNode(int opcode)
Constructs a new {@link AbstractInsnNode AbstractInsnNode} object.

Parameters: opcode the opcode of the instruction to be constructed.

Method Detail

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.