Package com.llamalad7.mixinextras.utils
Class ASMUtils
java.lang.Object
com.llamalad7.mixinextras.utils.ASMUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.objectweb.asm.Handlestatic final org.objectweb.asm.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringannotationToString(org.objectweb.asm.tree.AnnotationNode annotation) static org.objectweb.asm.tree.MethodInsnNodefindInitNodeFor(org.spongepowered.asm.mixin.injection.struct.Target target, org.objectweb.asm.tree.TypeInsnNode newNode) Mixin already has this method inTargetbut it's wrong.static org.objectweb.asm.TypegetConstantType(org.objectweb.asm.tree.AbstractInsnNode insn) static intgetDummyOpcodeForType(org.objectweb.asm.Type type) static org.objectweb.asm.tree.AnnotationNodegetInvisibleMEAnnotation(org.objectweb.asm.tree.MethodNode method, Class<? extends Annotation> annotation) static org.objectweb.asm.tree.MethodInsnNodegetInvokeInstruction(org.objectweb.asm.tree.ClassNode owner, org.objectweb.asm.tree.MethodNode method) static org.objectweb.asm.tree.AnnotationNodegetRepeatedMEAnnotation(org.objectweb.asm.tree.MethodNode method, Class<? extends Annotation> single) static voidstatic voidifElse(org.objectweb.asm.tree.InsnList insns, Consumer<org.objectweb.asm.tree.LabelNode> addJump, Runnable first, Runnable second) static booleanisPrimitive(org.objectweb.asm.Type type) static StringtypeToString(org.objectweb.asm.Type type)
-
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
-
typeToString
-
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 inTargetbut it's wrong. -
ifElse
-
ifElse
-
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)
-