Class Clinit
java.lang.Object
org.spongepowered.asm.mixin.transformer.struct.Clinit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.objectweb.asm.tree.MethodNodeprotected final org.objectweb.asm.tree.AbstractInsnNode -
Constructor Summary
ConstructorsConstructorDescriptionClinit(org.objectweb.asm.tree.MethodNode clinit, org.objectweb.asm.tree.AbstractInsnNode finalReturn) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(IMixinInfo mixinInfo, org.objectweb.asm.tree.MethodNode mixinClinit) protected voidappendInsns(IMixinInfo mixinInfo, org.objectweb.asm.tree.MethodNode mixinClinit, Map<org.objectweb.asm.tree.LabelNode, org.objectweb.asm.tree.LabelNode> labels) static Clinitprotected static org.objectweb.asm.tree.AbstractInsnNodeprepareClinit(org.objectweb.asm.tree.MethodNode clinit, Target target) Rewrites RETURN instructions to instead GOTO a final RETURN instruction, and returns said instruction.
-
Field Details
-
clinit
protected final org.objectweb.asm.tree.MethodNode clinit -
finalReturn
protected final org.objectweb.asm.tree.AbstractInsnNode finalReturn
-
-
Constructor Details
-
Clinit
public Clinit(org.objectweb.asm.tree.MethodNode clinit, org.objectweb.asm.tree.AbstractInsnNode finalReturn)
-
-
Method Details
-
append
-
appendInsns
protected void appendInsns(IMixinInfo mixinInfo, org.objectweb.asm.tree.MethodNode mixinClinit, Map<org.objectweb.asm.tree.LabelNode, org.objectweb.asm.tree.LabelNode> labels) -
prepare
-
prepareClinit
protected static org.objectweb.asm.tree.AbstractInsnNode prepareClinit(org.objectweb.asm.tree.MethodNode clinit, Target target) Rewrites RETURN instructions to instead GOTO a final RETURN instruction, and returns said instruction.
-