Class ModifyConstantInjectionInfo

All Implemented Interfaces:
ISliceContext, IInjectionPointContext, IMessageSink

public class ModifyConstantInjectionInfo
extends InjectionInfo
Information about a constant modifier injector
  • Constructor Details

    • ModifyConstantInjectionInfo

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

    • readInjectionPoints

      protected java.util.List<org.objectweb.asm.tree.AnnotationNode> readInjectionPoints()
      Overrides:
      readInjectionPoints in class InjectionInfo
    • parseInjectionPoints

      protected void parseInjectionPoints​(java.util.List<org.objectweb.asm.tree.AnnotationNode> ats)
      Overrides:
      parseInjectionPoints in class InjectionInfo
    • parseInjector

      protected Injector parseInjector​(org.objectweb.asm.tree.AnnotationNode injectAnnotation)
      Specified by:
      parseInjector in class InjectionInfo
    • getDescription

      protected java.lang.String getDescription()
      Overrides:
      getDescription in class InjectionInfo
    • getSliceId

      public java.lang.String getSliceId​(java.lang.String id)
      Description copied from class: InjectionInfo
      Return the mapped slice id for the specified ID. Injectors which only support use of a single slice will always return the default id (an empty string)
      Overrides:
      getSliceId in class InjectionInfo
      Parameters:
      id - slice id
      Returns:
      mapped id