Interface IInjectionPointContext
- All Superinterfaces:
IMessageSink,ISelectorContext
- All Known Subinterfaces:
ISliceContext
- All Known Implementing Classes:
AccessorInfo,AnnotatedMethodInfo,CallbackInjectionInfo,InjectionInfo,InjectionPointAnnotationContext,ModifyArgInjectionInfo,ModifyArgsInjectionInfo,ModifyConstantInjectionInfo,ModifyVariableInjectionInfo,RedirectInjectionInfo,SpecialMethodInfo
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 TypeMethodDescriptionorg.objectweb.asm.tree.AnnotationNodeGet the parent annotation (eg.org.objectweb.asm.tree.MethodNodeGet the injection handler methodMethods inherited from interface org.spongepowered.asm.util.IMessageSink
addMessageMethods inherited from interface org.spongepowered.asm.mixin.injection.selectors.ISelectorContext
getAnnotation, getElementDescription, getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
-
Method Details
-
getMethod
org.objectweb.asm.tree.MethodNode getMethod()Get the injection handler method- Specified by:
getMethodin interfaceISelectorContext
-
getAnnotationNode
org.objectweb.asm.tree.AnnotationNode getAnnotationNode()Get the parent annotation (eg. the @Inject annotation)
-