Class SpecialMethodInfo

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

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

    Fields
    Modifier and Type Field Description
    protected java.lang.String annotationType
    Human-readable annotation type
    protected org.objectweb.asm.tree.ClassNode classNode
    Class
    protected java.lang.String methodName
    Original name of the method, if available
    protected MixinTargetContext mixin
    Mixin data

    Fields inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo

    annotation, logger, method
  • Constructor Summary

    Constructors
    Constructor Description
    SpecialMethodInfo​(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)  
  • Method Summary

    Modifier and Type Method Description
    ClassInfo getClassInfo()
    Get the class metadata for the mixin
    org.objectweb.asm.tree.ClassNode getClassNode()
    Get the class node for this injection
    java.lang.String getMethodName()
    Get the original name of the method, if available

    Methods inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo

    addMessage, getAnnotation, getContext, getMethod

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • annotationType

      protected final java.lang.String annotationType
      Human-readable annotation type
    • classNode

      protected final org.objectweb.asm.tree.ClassNode classNode
      Class
    • methodName

      protected final java.lang.String methodName
      Original name of the method, if available
    • 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

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

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

      public java.lang.String getMethodName()
      Get the original name of the method, if available