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.AnnotationNodegetAnnotation()Get the parent annotation (eg.IMixinContextgetContext()Get the mixin context for this injectionorg.objectweb.asm.tree.MethodNodegetMethod()Get the injection handler methodMethods 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)
-