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
Constructors Constructor Description InjectionPointAnnotationContext(IInjectionPointContext parent, org.objectweb.asm.tree.AnnotationNode selectorAnnotation, java.lang.String selectorCoordinate)InjectionPointAnnotationContext(IInjectionPointContext parent, IAnnotationHandle selectorAnnotation, java.lang.String selectorCoordinate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(java.lang.String format, java.lang.Object... args)Add a new messageIAnnotationHandlegetAnnotation()Get the root annotation for the selector, for example the injector or accessor annotationorg.objectweb.asm.tree.AnnotationNodegetAnnotationNode()Get the parent annotation (eg.org.objectweb.asm.tree.MethodNodegetMethod()Get the root method upon which this selector is operating, usually the injector methodjava.lang.StringtoString()-
Methods inherited from class org.spongepowered.asm.mixin.injection.struct.SelectorAnnotationContext
getElementDescription, 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
getElementDescription, getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
-
-
-
-
Constructor Detail
-
InjectionPointAnnotationContext
public InjectionPointAnnotationContext(IInjectionPointContext parent, IAnnotationHandle selectorAnnotation, java.lang.String selectorCoordinate)
-
InjectionPointAnnotationContext
public InjectionPointAnnotationContext(IInjectionPointContext parent, org.objectweb.asm.tree.AnnotationNode selectorAnnotation, java.lang.String selectorCoordinate)
-
-
Method Detail
-
addMessage
public void addMessage(java.lang.String format, java.lang.Object... args)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
public IAnnotationHandle 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-