Interface ISliceContext

All Superinterfaces:
IInjectionPointContext, IMessageSink
All Known Implementing Classes:
CallbackInjectionInfo, InjectionInfo, ModifyArgInjectionInfo, ModifyArgsInjectionInfo, ModifyConstantInjectionInfo, ModifyVariableInjectionInfo, RedirectInjectionInfo

public interface ISliceContext
extends IInjectionPointContext
Context for a slice declaration
  • Method Summary

    Modifier and Type Method Description
    MethodSlice getSlice​(java.lang.String id)
    Fetch slice with the specified id from this context, the slice id may be transformed internally by the context according to restrictions on the injector itself

    Methods inherited from interface org.spongepowered.asm.mixin.injection.IInjectionPointContext

    getAnnotation, getContext, getMethod

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

    addMessage
  • Method Details

    • getSlice

      MethodSlice getSlice​(java.lang.String id)
      Fetch slice with the specified id from this context, the slice id may be transformed internally by the context according to restrictions on the injector itself
      Parameters:
      id - slice id to fetch
      Returns:
      method slice matching query