com.llamalad7.mixinextras.utils.ASMUtils Maven / Gradle / Ivy
package com.llamalad7.mixinextras.utils;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.*;
import org.spongepowered.asm.mixin.injection.struct.Target;
import org.spongepowered.asm.util.Constants;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;
public class ASMUtils {
public static String annotationToString(AnnotationNode annotation) {
StringBuilder builder = new StringBuilder("@").append(typeToString(Type.getType(annotation.desc)));
List