Class ASMUtils

java.lang.Object
com.llamalad7.mixinextras.utils.ASMUtils

public class ASMUtils extends Object
  • Field Details

    • OBJECT_TYPE

      public static final org.objectweb.asm.Type OBJECT_TYPE
    • LMF_HANDLE

      public static final org.objectweb.asm.Handle LMF_HANDLE
  • Constructor Details

    • ASMUtils

      public ASMUtils()
  • Method Details

    • annotationToString

      public static String annotationToString(org.objectweb.asm.tree.AnnotationNode annotation)
    • typeToString

      public static String typeToString(org.objectweb.asm.Type type)
    • isPrimitive

      public static boolean isPrimitive(org.objectweb.asm.Type type)
    • getInvokeInstruction

      public static org.objectweb.asm.tree.MethodInsnNode getInvokeInstruction(org.objectweb.asm.tree.ClassNode owner, org.objectweb.asm.tree.MethodNode method)
    • getDummyOpcodeForType

      public static int getDummyOpcodeForType(org.objectweb.asm.Type type)
    • findInitNodeFor

      public static org.objectweb.asm.tree.MethodInsnNode findInitNodeFor(org.spongepowered.asm.mixin.injection.struct.Target target, org.objectweb.asm.tree.TypeInsnNode newNode)
      Mixin already has this method in Target but it's wrong.
    • ifElse

      public static void ifElse(org.objectweb.asm.tree.InsnList insns, int jumpToSecond, Runnable first, Runnable second)
    • ifElse

      public static void ifElse(org.objectweb.asm.tree.InsnList insns, Consumer<org.objectweb.asm.tree.LabelNode> addJump, Runnable first, Runnable second)
    • getRepeatedMEAnnotation

      public static org.objectweb.asm.tree.AnnotationNode getRepeatedMEAnnotation(org.objectweb.asm.tree.MethodNode method, Class<? extends Annotation> single)
    • getInvisibleMEAnnotation

      public static org.objectweb.asm.tree.AnnotationNode getInvisibleMEAnnotation(org.objectweb.asm.tree.MethodNode method, Class<? extends Annotation> annotation)
    • getConstantType

      public static org.objectweb.asm.Type getConstantType(org.objectweb.asm.tree.AbstractInsnNode insn)