com.github.rapidark.framework.thirdparty.asm.tree.MethodInsnNode Maven / Gradle / Ivy
The newest version!
package com.github.rapidark.framework.thirdparty.asm.tree;
import java.util.Map;
import com.github.rapidark.framework.thirdparty.asm.MethodVisitor;
public class MethodInsnNode extends AbstractInsnNode {
public String owner;
public String name;
public String desc;
public MethodInsnNode(int opcode, String owner, String name, String desc) {
super(opcode);
this.owner = owner;
this.name = name;
this.desc = desc;
}
public void setOpcode(int opcode) {
this.opcode = opcode;
}
public int getType() {
return 5;
}
public void accept(MethodVisitor mv) {
mv.visitMethodInsn(this.opcode, this.owner, this.name, this.desc);
}
public AbstractInsnNode clone(Map labels) {
return new MethodInsnNode(this.opcode, this.owner, this.name, this.desc);
}
}