if (a.toString().startsWith("@WovenByTheHuntress")) return;
@Override public void handle(final AnnotationValues<ArtemisManager> annotation, final JCAnnotation source, final JavacNode annotationNode) { JavacType type = JavacType.typeOf(annotationNode, source); for (Annotation a : type.annotations()) { // because all else is null... if (a.toString().startsWith("@WovenByTheHuntress")) return; } List<Object> mappedComponentTypes = annotation.getActualExpressions("requires"); mappedComponentTypes.addAll(annotation.getActualExpressions("optional")); mappedComponentTypes.addAll(annotation.getActualExpressions("excludes")); List<Object> systemTypes = annotation.getActualExpressions("systems"); List<Object> managerTypes = annotation.getActualExpressions("managers"); new JavacHandler(type, annotationNode) .handle(mappedComponentTypes, systemTypes, managerTypes) .rebuild(); } }
@Override public void handle(final AnnotationValues<ArtemisInjected> annotation, final JCAnnotation source, final JavacNode annotationNode) { JavacType type = JavacType.typeOf(annotationNode, source); for (Annotation a : type.annotations()) { // because all else is null... if (a.toString().startsWith("@WovenByTheHuntress")) return; } List<Object> mappedComponentTypes = annotation.getActualExpressions("mappers"); List<Object> systemTypes = annotation.getActualExpressions("systems"); List<Object> managerTypes = annotation.getActualExpressions("managers"); new JavacHandler(type, annotationNode) .handle(mappedComponentTypes, systemTypes, managerTypes) .injectInitialize() .rebuild(); } }
if (a.toString().startsWith("@WovenByTheHuntress")) return;
@Override public void handle(final AnnotationValues<ArtemisInjected> annotation, final Annotation source, final EclipseNode annotationNode) { EclipseType type = EclipseType.typeOf(annotationNode, source); for (lombok.ast.Annotation a : type.annotations()) { // because all else is null... if (a.toString().startsWith("@WovenByTheHuntress")) return; } List<Object> mappedComponentTypes = annotation.getActualExpressions("mappers"); List<Object> systemTypes = annotation.getActualExpressions("systems"); List<Object> managerTypes = annotation.getActualExpressions("managers"); filterInvalid(mappedComponentTypes); filterInvalid(systemTypes); filterInvalid(managerTypes); new EclipseHandler(type) .handle(mappedComponentTypes, systemTypes, managerTypes) .injectInitialize() .rebuild(); } }
@Override public void handle(final AnnotationValues<ArtemisManager> annotation, final Annotation source, final EclipseNode annotationNode) { EclipseType type = EclipseType.typeOf(annotationNode, source); if (type.isAnnotation() || type.isInterface()) { annotationNode.addError(canBeUsedOnClassOnly(ArtemisManager.class)); return; } for (lombok.ast.Annotation a : type.annotations()) { // because all else is null... if (a.toString().startsWith("@WovenByTheHuntress")) return; } List<Object> mappedComponentTypes = annotation.getActualExpressions("requires"); mappedComponentTypes.addAll(annotation.getActualExpressions("optional")); mappedComponentTypes.addAll(annotation.getActualExpressions("excludes")); List<Object> systemTypes = annotation.getActualExpressions("systems"); List<Object> managerTypes = annotation.getActualExpressions("managers"); filterInvalid(mappedComponentTypes); filterInvalid(systemTypes); filterInvalid(managerTypes); new EclipseHandler(type) .handle(mappedComponentTypes, systemTypes, managerTypes) .rebuild(); } }