public class SelectorAnnotationContext extends java.lang.Object implements ISelectorContext
| Constructor and Description |
|---|
SelectorAnnotationContext(ISelectorContext parent,
IAnnotationHandle selectorAnnotation,
java.lang.String selectorCoordinate)
Create a specialised context for a child annotation
|
| Modifier and Type | Method and Description |
|---|---|
IAnnotationHandle |
getAnnotation()
Get the root annotation for the selector, for example the injector or
accessor annotation
|
java.lang.Object |
getMethod()
Get the root method upon which this selector is operating, usually the
injector method
|
IMixinContext |
getMixin()
Get the mixin containing this selector.
|
ISelectorContext |
getParent()
Get the parent of this selector, must not return null
|
IAnnotationHandle |
getSelectorAnnotation()
Get the annotation for this selector, for example the @At annotation
|
java.lang.String |
getSelectorCoordinate(boolean leaf)
Get the coordinate for this selector.
|
java.lang.String |
remap(java.lang.String reference)
Remap a reference in the context of this selector, usually via the local
refmap of the mixin configuration but can be overridden as needed, for
example to provide selector-local remap behaviour.
|
public SelectorAnnotationContext(ISelectorContext parent, IAnnotationHandle selectorAnnotation, java.lang.String selectorCoordinate)
parent - Parent selector context, eg. context of the outer element
such as @InjectselectorAnnotation - Annotation for this selector, eg. @AtselectorCoordinate - Coordinate for this selectorpublic ISelectorContext getParent()
getParent in interface ISelectorContextpublic IMixinContext getMixin()
ISelectorContextgetMixin in interface ISelectorContextpublic java.lang.Object getMethod()
ISelectorContextgetMethod in interface ISelectorContextpublic IAnnotationHandle getAnnotation()
ISelectorContextgetAnnotation in interface ISelectorContextpublic IAnnotationHandle getSelectorAnnotation()
ISelectorContextgetSelectorAnnotation in interface ISelectorContextpublic java.lang.String getSelectorCoordinate(boolean leaf)
ISelectorContextgetSelectorCoordinate in interface ISelectorContextleaf - True if getting the coordinate when this element is a leaf,
false if getting the coordinate when it is a parentpublic java.lang.String remap(java.lang.String reference)
ISelectorContextremap in interface ISelectorContextreference - Reference to remap