java.lang.Object
org.spongepowered.asm.mixin.transformer.struct.Clinit

public class Clinit extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.objectweb.asm.tree.MethodNode
     
    protected final org.objectweb.asm.tree.AbstractInsnNode
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Clinit(org.objectweb.asm.tree.MethodNode clinit, org.objectweb.asm.tree.AbstractInsnNode finalReturn)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(IMixinInfo mixinInfo, org.objectweb.asm.tree.MethodNode mixinClinit)
     
    protected void
    appendInsns(IMixinInfo mixinInfo, org.objectweb.asm.tree.MethodNode mixinClinit, Map<org.objectweb.asm.tree.LabelNode,org.objectweb.asm.tree.LabelNode> labels)
     
    static Clinit
    prepare(Target clinit)
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void append(IMixinInfo mixinInfo, org.objectweb.asm.tree.MethodNode mixinClinit)
    • 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

      public static Clinit prepare(Target clinit)
    • 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.