Class SpecialMethodInfo

java.lang.Object
org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
org.spongepowered.asm.mixin.struct.SpecialMethodInfo
All Implemented Interfaces:
IInjectionPointContext, ISelectorContext, IMessageSink
Direct Known Subclasses:
AccessorInfo, InjectionInfo

public class SpecialMethodInfo extends AnnotatedMethodInfo
Information about a special mixin method such as an injector or accessor
  • Field Details

    • classNode

      protected final org.objectweb.asm.tree.ClassNode classNode
      Target class node
    • mixin

      protected final MixinTargetContext mixin
      Mixin data
  • Constructor Details

    • SpecialMethodInfo

      public SpecialMethodInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)
  • Method Details

    • getClassNode

      @Deprecated public final org.objectweb.asm.tree.ClassNode getClassNode()
      Deprecated.
      use getTargetClassNode instead
      Get the class node for this injection
      Returns:
      the class containing the injector and the target
    • getTargetClassNode

      public final org.objectweb.asm.tree.ClassNode getTargetClassNode()
      Get the target class node for this injection
      Returns:
      the class containing the injector and the target
    • getTargetClassInfo

      public final ClassInfo getTargetClassInfo()
      Get the class metadata for the target class
    • getClassInfo

      public final ClassInfo getClassInfo()
      Get the class metadata for the mixin
    • getMethodName

      public String getMethodName()
      Get the original name of the method, if available
      Overrides:
      getMethodName in class AnnotatedMethodInfo