Class InjectionPointAnnotationContext
java.lang.Object
org.spongepowered.asm.mixin.injection.struct.SelectorAnnotationContext
org.spongepowered.asm.mixin.injection.struct.InjectionPointAnnotationContext
- All Implemented Interfaces:
IInjectionPointContext
,ISelectorContext
,IMessageSink
public class InjectionPointAnnotationContext
extends SelectorAnnotationContext
implements IInjectionPointContext
Specialised SelectorAnnotationContext for injection points
-
Constructor Summary
ConstructorsConstructorDescriptionInjectionPointAnnotationContext
(IInjectionPointContext parent, org.objectweb.asm.tree.AnnotationNode selectorAnnotation, String selectorCoordinate) InjectionPointAnnotationContext
(IInjectionPointContext parent, IAnnotationHandle selectorAnnotation, String selectorCoordinate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(String format, Object... args) Add a new messageGet the root annotation for the selector, for example the injector or accessor annotationorg.objectweb.asm.tree.AnnotationNode
Get the parent annotation (eg.org.objectweb.asm.tree.MethodNode
Get the root method upon which this selector is operating, usually the injector methodtoString()
Methods inherited from class org.spongepowered.asm.mixin.injection.struct.SelectorAnnotationContext
getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.spongepowered.asm.mixin.injection.selectors.ISelectorContext
getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
-
Constructor Details
-
InjectionPointAnnotationContext
public InjectionPointAnnotationContext(IInjectionPointContext parent, IAnnotationHandle selectorAnnotation, String selectorCoordinate) -
InjectionPointAnnotationContext
public InjectionPointAnnotationContext(IInjectionPointContext parent, org.objectweb.asm.tree.AnnotationNode selectorAnnotation, String selectorCoordinate)
-
-
Method Details
-
addMessage
Description copied from interface:IMessageSink
Add a new message- Specified by:
addMessage
in interfaceIMessageSink
- Parameters:
format
- Message formatargs
- Message args
-
getMethod
public org.objectweb.asm.tree.MethodNode getMethod()Description copied from interface:ISelectorContext
Get the root method upon which this selector is operating, usually the injector method- Specified by:
getMethod
in interfaceIInjectionPointContext
- Specified by:
getMethod
in interfaceISelectorContext
- Overrides:
getMethod
in classSelectorAnnotationContext
-
getAnnotationNode
public org.objectweb.asm.tree.AnnotationNode getAnnotationNode()Description copied from interface:IInjectionPointContext
Get the parent annotation (eg. the @Inject annotation)- Specified by:
getAnnotationNode
in interfaceIInjectionPointContext
-
getAnnotation
Description copied from interface:ISelectorContext
Get the root annotation for the selector, for example the injector or accessor annotation- Specified by:
getAnnotation
in interfaceISelectorContext
- Overrides:
getAnnotation
in classSelectorAnnotationContext
-
toString
-