FileDocCategorySizeDatePackage
MethodInsnNode.javaAPI DocGlassfish v2 API3475Thu Mar 02 11:51:16 GMT 2006oracle.toplink.libraries.asm.tree

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

Fields Summary
public String
owner
The internal name of the method's owner class (see {@link oracle.toplink.libraries.asm.Type#getInternalName() getInternalName}).
public String
name
The method's name.
public String
desc
The method's descriptor (see {@link oracle.toplink.libraries.asm.Type Type}).
Constructors Summary
public MethodInsnNode(int opcode, String owner, String name, String desc)
Constructs a new {@link MethodInsnNode MethodInsnNode} object.

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

    super(opcode);
    this.owner = owner;
    this.name = name;
    this.desc = desc;
  
Methods Summary
public voidaccept(oracle.toplink.libraries.asm.CodeVisitor cv)

    cv.visitMethodInsn(opcode, owner, name, desc);
  
public voidsetOpcode(int opcode)
Sets the opcode of this instruction.

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

    this.opcode = opcode;