Class InjectorTarget

java.lang.Object
org.spongepowered.asm.mixin.injection.code.InjectorTarget

public class InjectorTarget extends Object
Couples method slices to a Target for injection purposes.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTarget

      public Target getTarget()
      Get the target reference
    • getMethod

      public org.objectweb.asm.tree.MethodNode getMethod()
      Get the target method
    • getSelector

      public ITargetSelector getSelector()
      Get the selector which selected this target
    • isMerged

      public boolean isMerged()
      Get whether this target method was merged by another mixin
    • getMergedBy

      public String getMergedBy()
      Get the name of the mixin which merged this method, returns null for non- mixin methods
    • getMergedPriority

      public int getMergedPriority()
      Get the priority of the mixin which merged this method, or default priority for non-mixin methods
    • getSlice

      public org.objectweb.asm.tree.InsnList getSlice(String id)
      Get the slice instructions for the specified slice id
      Parameters:
      id - slice id
      Returns:
      insn slice
    • getSlice

      public org.objectweb.asm.tree.InsnList getSlice(InjectionPoint injectionPoint)
      Get the slice instructions for the specified injection point
      Parameters:
      injectionPoint - injection point to fetch slice for
      Returns:
      slice
    • dispose

      public void dispose()
      Dispose all cached instruction lists