Class AnnotatedMethodInfo

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

public class AnnotatedMethodInfo
extends java.lang.Object
implements IInjectionPointContext
Data bundle for an annotated method in a mixin
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected org.objectweb.asm.tree.AnnotationNode annotation
    Annotation on the method
    protected static org.apache.logging.log4j.Logger logger
    Log more things
    protected org.objectweb.asm.tree.MethodNode method
    Annotated method
  • Constructor Summary

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

    Modifier and Type Method Description
    void addMessage​(java.lang.String format, java.lang.Object... args)
    Add a new message
    org.objectweb.asm.tree.AnnotationNode getAnnotation()
    Get the annotation which this InjectionInfo was created from
    IMixinContext getContext()
    Get the mixin target context for this annotated method
    org.objectweb.asm.tree.MethodNode getMethod()
    Get method being called

    Methods inherited from class java.lang.Object

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

    • logger

      protected static final org.apache.logging.log4j.Logger logger
      Log more things
    • method

      protected final org.objectweb.asm.tree.MethodNode method
      Annotated method
    • annotation

      protected final org.objectweb.asm.tree.AnnotationNode annotation
      Annotation on the method
  • Constructor Details

    • AnnotatedMethodInfo

      public AnnotatedMethodInfo​(IMixinContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)
  • Method Details

    • getContext

      public final IMixinContext getContext()
      Get the mixin target context for this annotated method
      Specified by:
      getContext in interface IInjectionPointContext
      Returns:
      the target context
    • getMethod

      public final org.objectweb.asm.tree.MethodNode getMethod()
      Get method being called
      Specified by:
      getMethod in interface IInjectionPointContext
      Returns:
      injector method
    • getAnnotation

      public final org.objectweb.asm.tree.AnnotationNode getAnnotation()
      Get the annotation which this InjectionInfo was created from
      Specified by:
      getAnnotation in interface IInjectionPointContext
      Returns:
      The annotation which this InjectionInfo was created from
    • addMessage

      public void addMessage​(java.lang.String format, java.lang.Object... args)
      Description copied from interface: IMessageSink
      Add a new message
      Specified by:
      addMessage in interface IMessageSink
      Parameters:
      format - Message format
      args - Message args