public interface ISelectorContext
Target Selector in order to
support context-sensitive behaviour for the selector. For example obtaining
the name of the source mixin, or the element containing the selector itself.| 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 (outer/containing) context.
|
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.
|
ISelectorContext getParent()
IMixinContext getMixin()
java.lang.Object getMethod()
IAnnotationHandle getAnnotation()
IAnnotationHandle getSelectorAnnotation()
java.lang.String getSelectorCoordinate(boolean leaf)
leaf - True if getting the coordinate when this element is a leaf,
false if getting the coordinate when it is a parentjava.lang.String remap(java.lang.String reference)
reference - Reference to remap