Class InsnListEx

java.lang.Object
org.objectweb.asm.tree.InsnList
org.spongepowered.asm.mixin.injection.code.InsnListReadOnly
org.spongepowered.asm.mixin.injection.code.InsnListEx
All Implemented Interfaces:
Iterable<org.objectweb.asm.tree.AbstractInsnNode>, IInsnListEx

public class InsnListEx extends InsnListReadOnly implements IInsnListEx
InsnList with extensions, see IInsnListEx
  • Constructor Details

    • InsnListEx

      public InsnListEx(Target target)
  • Method Details

    • toString

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

      public String getTargetName()
      Description copied from interface: IInsnListEx
      Get the name of the target method
      Specified by:
      getTargetName in interface IInsnListEx
    • getTargetDesc

      public String getTargetDesc()
      Description copied from interface: IInsnListEx
      Get the descriptor of the target method
      Specified by:
      getTargetDesc in interface IInsnListEx
    • getTargetSignature

      public String getTargetSignature()
      Description copied from interface: IInsnListEx
      Get the signature of the target method
      Specified by:
      getTargetSignature in interface IInsnListEx
    • getTargetAccess

      public int getTargetAccess()
      Description copied from interface: IInsnListEx
      Get the access flags from the target method
      Specified by:
      getTargetAccess in interface IInsnListEx
    • isTargetStatic

      public boolean isTargetStatic()
      Description copied from interface: IInsnListEx
      Get whether the target method is static
      Specified by:
      isTargetStatic in interface IInsnListEx
    • isTargetConstructor

      public boolean isTargetConstructor()
      Description copied from interface: IInsnListEx
      Get whether the target method is a constructor
      Specified by:
      isTargetConstructor in interface IInsnListEx
    • isTargetStaticInitialiser

      public boolean isTargetStaticInitialiser()
      Description copied from interface: IInsnListEx
      Get whether the target method is a static initialiser
      Specified by:
      isTargetStaticInitialiser in interface IInsnListEx
    • getSpecialNode

      public org.objectweb.asm.tree.AbstractInsnNode getSpecialNode(IInsnListEx.SpecialNodeType type)
      Description copied from interface: IInsnListEx
      Get - if available - the specified special node from the target. The returned node is not guaranteed to be non-null.
      Specified by:
      getSpecialNode in interface IInsnListEx
      Parameters:
      type - type of special node to fetch
      Returns:
      the special node or null if not available