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 Type).
Stringname
The method's name.
Stringowner
The internal name of the method's owner class (see getInternalName).
Constructor Summary
MethodInsnNode(int opcode, String owner, String name, String desc)
Constructs a new MethodInsnNode.
Method Summary
voidaccept(MethodVisitor mv)
AbstractInsnNodeclone(Map labels)
intgetType()
voidsetOpcode(int opcode)
Sets the opcode of this instruction.

Field Detail

desc

public String desc
The method's descriptor (see Type).

name

public String name
The method's name.

owner

public String owner
The internal name of the method's owner class (see getInternalName).

Constructor Detail

MethodInsnNode

public MethodInsnNode(int opcode, String owner, String name, String desc)
Constructs a new MethodInsnNode.

Parameters: opcode the opcode of the type instruction to be constructed. This opcode must be INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC, INVOKEINTERFACE or INVOKEDYNAMIC. owner the internal name of the method's owner class (see getInternalName) or INVOKEDYNAMIC_OWNER. name the method's name. desc the method's descriptor (see Type).

Method Detail

accept

public void accept(MethodVisitor mv)

clone

public AbstractInsnNode clone(Map labels)

getType

public int getType()

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.