All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rapidark.framework.thirdparty.asm.tree.InvokeDynamicInsnNode 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.Handle;
import com.github.rapidark.framework.thirdparty.asm.MethodVisitor;

public class InvokeDynamicInsnNode extends AbstractInsnNode {
	public String name;
	public String desc;
	public Handle bsm;
	public Object[] bsmArgs;

	public InvokeDynamicInsnNode(String name, String desc, Handle bsm, Object... bsmArgs) {
		super(186);
		this.name = name;
		this.desc = desc;
		this.bsm = bsm;
		this.bsmArgs = bsmArgs;
	}

	public int getType() {
		return 6;
	}

	public void accept(MethodVisitor mv) {
		mv.visitInvokeDynamicInsn(this.name, this.desc, this.bsm, this.bsmArgs);
	}

	public AbstractInsnNode clone(Map labels) {
		return new InvokeDynamicInsnNode(this.name, this.desc, this.bsm, this.bsmArgs);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy