mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-28 07:55:37 +00:00
Add handling in the AP for soft implements annotations, closes #151
This commit is contained in:
1 parent
78434b5f11
commit
4934071ee7
9 files changed
+365
-33
No files matched your search
@@ -134,6 +134,11 @@ class AnnotatedMixin {
|
||||
* Accessor handler
|
||||
*/
|
||||
private final AnnotatedMixinElementHandlerAccessor accessors;
|
||||
|
||||
/**
|
||||
* Soft implementation handler;
|
||||
*/
|
||||
private final AnnotatedMixinElementHandlerSoftImplements softImplements;
|
||||
|
||||
public AnnotatedMixin(IMixinAnnotationProcessor ap, TypeElement type) {
|
||||
this.annotation = MirrorUtils.getAnnotation(type, Mixin.class);
|
||||
@@ -151,6 +156,7 @@ class AnnotatedMixin {
|
||||
this.shadows = new AnnotatedMixinElementHandlerShadow(ap, this);
|
||||
this.injectors = new AnnotatedMixinElementHandlerInjector(ap, this);
|
||||
this.accessors = new AnnotatedMixinElementHandlerAccessor(ap, this);
|
||||
this.softImplements = new AnnotatedMixinElementHandlerSoftImplements(ap, this);
|
||||
}
|
||||
|
||||
AnnotatedMixin runValidators(ValidationPass pass, Collection<IMixinValidator> validators) {
|
||||
@@ -333,5 +339,9 @@ class AnnotatedMixin {
|
||||
public void registerInvoker(ExecutableElement element, AnnotationMirror invoker) {
|
||||
this.accessors.registerAccessor(new AnnotatedElementInvoker(element, invoker));
|
||||
}
|
||||
|
||||
public void registerSoftImplements(AnnotationMirror implementsAnnotation) {
|
||||
this.softImplements.process(implementsAnnotation);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user