org.objectweb.asm.tree

Class MethodInsnNode

public class MethodInsnNode extends AbstractInsnNode

A node that represents a method instruction. A method instruction is an instruction that invokes a method.

Author: Eric Bruneton

Field Summary
Stringdesc
The method's descriptor (see {@link org.objectweb.asm.Type Type}).
Stringname
The method's name.
Stringowner
The internal name of the method's owner class (see {@link org.objectweb.asm.Type#getInternalName() getInternalName}).
Constructor Summary
MethodInsnNode(int opcode, String owner, String name, String desc)
Constructs a new {@link MethodInsnNode MethodInsnNode} object.
Method Summary
voidaccept(CodeVisitor cv)
voidsetOpcode(int opcode)
Sets the opcode of this instruction.

Field Detail

desc

public String desc
The method's descriptor (see {@link org.objectweb.asm.Type Type}).

name

public String name
The method's name.

owner

public String owner
The internal name of the method's owner class (see {@link org.objectweb.asm.Type#getInternalName() getInternalName}).

Constructor Detail

MethodInsnNode

public MethodInsnNode(int opcode, String owner, String name, String desc)
Constructs a new {@link MethodInsnNode MethodInsnNode} object.

Parameters: opcode the opcode of the type instruction to be constructed. This opcode must be INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or INVOKEINTERFACE. owner the internal name of the method's owner class (see {@link org.objectweb.asm.Type#getInternalName() getInternalName}). name the method's name. desc the method's descriptor (see {@link org.objectweb.asm.Type Type}).

Method Detail

accept

public void accept(CodeVisitor cv)

setOpcode

public void setOpcode(int opcode)
Sets the opcode of this instruction.

Parameters: opcode the new instruction opcode. This opcode must be INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or INVOKEINTERFACE.