private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = (ClassInfo) instance.target(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }