|
|
|
@ -57,19 +57,16 @@ class IndexedStereotypesProvider implements StereotypesProvider { |
|
|
|
return stereotypes; |
|
|
|
return stereotypes; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void collectStereotypesOnAnnotations(Set<Element> seen, Set<String> stereotypes, |
|
|
|
private void collectStereotypesOnAnnotations(Set<Element> seen, Set<String> stereotypes, Element element) { |
|
|
|
Element element) { |
|
|
|
|
|
|
|
for (AnnotationMirror annotation : this.typeHelper.getAllAnnotationMirrors(element)) { |
|
|
|
for (AnnotationMirror annotation : this.typeHelper.getAllAnnotationMirrors(element)) { |
|
|
|
Element next = collectStereotypes(seen, stereotypes, element, annotation); |
|
|
|
Element next = collectStereotypes(seen, stereotypes, element, annotation); |
|
|
|
if (next != null) { |
|
|
|
if (next != null) { |
|
|
|
collectStereotypesOnAnnotations(seen, stereotypes, next); |
|
|
|
collectStereotypesOnAnnotations(seen, stereotypes, next); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void collectStereotypesOnTypes(Set<Element> seen, Set<String> stereotypes, |
|
|
|
private void collectStereotypesOnTypes(Set<Element> seen, Set<String> stereotypes, Element type) { |
|
|
|
Element type) { |
|
|
|
|
|
|
|
if (!seen.contains(type)) { |
|
|
|
if (!seen.contains(type)) { |
|
|
|
seen.add(type); |
|
|
|
seen.add(type); |
|
|
|
if (isAnnotatedWithIndexed(type)) { |
|
|
|
if (isAnnotatedWithIndexed(type)) { |
|
|
|
@ -84,8 +81,8 @@ class IndexedStereotypesProvider implements StereotypesProvider { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Element collectStereotypes(Set<Element> seen, Set<String> stereotypes, |
|
|
|
private Element collectStereotypes(Set<Element> seen, Set<String> stereotypes, Element element, |
|
|
|
Element element, AnnotationMirror annotation) { |
|
|
|
AnnotationMirror annotation) { |
|
|
|
|
|
|
|
|
|
|
|
if (isIndexedAnnotation(annotation)) { |
|
|
|
if (isIndexedAnnotation(annotation)) { |
|
|
|
stereotypes.add(this.typeHelper.getType(element)); |
|
|
|
stereotypes.add(this.typeHelper.getType(element)); |
|
|
|
|