private boolean isAnnotatedWithIndexed(Element type) { for (AnnotationMirror annotation : type.getAnnotationMirrors()) { if (isIndexedAnnotation(annotation)) { return true; } } return false; }
private Element getCandidateAnnotationElement(Set<Element> seen, AnnotationMirror annotation) { Element element = annotation.getAnnotationType().asElement(); if (seen.contains(element)) { return null; } // We need to visit all indexed annotations. if (!isIndexedAnnotation(annotation)) { seen.add(element); } return (!element.toString().startsWith("java.lang") ? element : null); }
private Element collectStereotypes(Set<Element> seen, Set<String> stereotypes, Element element, AnnotationMirror annotation) { if (isIndexedAnnotation(annotation)) { stereotypes.add(this.typeHelper.getType(element)); } return getCandidateAnnotationElement(seen, annotation); }
private boolean isAnnotatedWithIndexed(Element type) { for (AnnotationMirror annotation : type.getAnnotationMirrors()) { if (isIndexedAnnotation(annotation)) { return true; } } return false; }
private Element getCandidateAnnotationElement(Set<Element> seen, AnnotationMirror annotation) { Element element = annotation.getAnnotationType().asElement(); if (seen.contains(element)) { return null; } // We need to visit all indexed annotations. if (!isIndexedAnnotation(annotation)) { seen.add(element); } return (!element.toString().startsWith("java.lang") ? element : null); }
private Element collectStereotypes(Set<Element> seen, Set<String> stereotypes, Element element, AnnotationMirror annotation) { if (isIndexedAnnotation(annotation)) { stereotypes.add(this.typeHelper.getType(element)); } return getCandidateAnnotationElement(seen, annotation); }