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 TypeMethodDescriptionvoidaddMessage(String format, Object... args) Add a new messageGet the root annotation for the selector, for example the injector or accessor annotationorg.objectweb.asm.tree.AnnotationNodeGet the parent annotation (eg.org.objectweb.asm.tree.MethodNodeGet the root method upon which this selector is operating, usually the injector methodtoString()Methods inherited from class org.spongepowered.asm.mixin.injection.struct.SelectorAnnotationContext
getElementDescription, getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.spongepowered.asm.mixin.injection.selectors.ISelectorContext
getElementDescription, 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:IMessageSinkAdd a new message- Specified by:
addMessagein interfaceIMessageSink- Parameters:
format- Message formatargs- Message args
-
getMethod
public org.objectweb.asm.tree.MethodNode getMethod()Description copied from interface:ISelectorContextGet the root method upon which this selector is operating, usually the injector method- Specified by:
getMethodin interfaceIInjectionPointContext- Specified by:
getMethodin interfaceISelectorContext- Overrides:
getMethodin classSelectorAnnotationContext
-
getAnnotationNode
public org.objectweb.asm.tree.AnnotationNode getAnnotationNode()Description copied from interface:IInjectionPointContextGet the parent annotation (eg. the @Inject annotation)- Specified by:
getAnnotationNodein interfaceIInjectionPointContext
-
getAnnotation
Description copied from interface:ISelectorContextGet the root annotation for the selector, for example the injector or accessor annotation- Specified by:
getAnnotationin interfaceISelectorContext- Overrides:
getAnnotationin classSelectorAnnotationContext
-
toString
-