Interface IInjectionPointContext

All Superinterfaces:
IMessageSink
All Known Subinterfaces:
ISliceContext
All Known Implementing Classes:
AccessorInfo, AnnotatedMethodInfo, CallbackInjectionInfo, InjectionInfo, ModifyArgInjectionInfo, ModifyArgsInjectionInfo, ModifyConstantInjectionInfo, ModifyVariableInjectionInfo, RedirectInjectionInfo, SpecialMethodInfo

public interface IInjectionPointContext
extends IMessageSink
Context for an injection point, used to access the mixin as well as the owner method and annotation for the injection point
  • Method Summary

    Modifier and Type Method Description
    org.objectweb.asm.tree.AnnotationNode getAnnotation()
    Get the parent annotation (eg.
    IMixinContext getContext()
    Get the mixin context for this injection
    org.objectweb.asm.tree.MethodNode getMethod()
    Get the injection handler method

    Methods inherited from interface org.spongepowered.asm.util.IMessageSink

    addMessage
  • Method Details

    • getContext

      IMixinContext getContext()
      Get the mixin context for this injection
    • getMethod

      org.objectweb.asm.tree.MethodNode getMethod()
      Get the injection handler method
    • getAnnotation

      org.objectweb.asm.tree.AnnotationNode getAnnotation()
      Get the parent annotation (eg. the @Inject annotation)