759 |
759 |
760 @Override |
760 @Override |
761 public Set<TypeElement> visitType(TypeElement e, Set<TypeElement> p) { |
761 public Set<TypeElement> visitType(TypeElement e, Set<TypeElement> p) { |
762 // Type parameters are not considered to be enclosed by a type |
762 // Type parameters are not considered to be enclosed by a type |
763 scan(e.getTypeParameters(), p); |
763 scan(e.getTypeParameters(), p); |
764 return scan(e.getEnclosedElements(), p); |
764 return super.visitType(e, p); |
765 } |
765 } |
766 |
766 |
767 @Override |
767 @Override |
768 public Set<TypeElement> visitExecutable(ExecutableElement e, Set<TypeElement> p) { |
768 public Set<TypeElement> visitExecutable(ExecutableElement e, Set<TypeElement> p) { |
769 // Type parameters are not considered to be enclosed by an executable |
769 // Type parameters are not considered to be enclosed by an executable |
770 scan(e.getTypeParameters(), p); |
770 scan(e.getTypeParameters(), p); |
771 return scan(e.getEnclosedElements(), p); |
771 return super.visitExecutable(e, p); |
772 } |
772 } |
773 |
773 |
774 void addAnnotations(Element e, Set<TypeElement> p) { |
774 void addAnnotations(Element e, Set<TypeElement> p) { |
775 for (AnnotationMirror annotationMirror : |
775 for (AnnotationMirror annotationMirror : |
776 elements.getAllAnnotationMirrors(e) ) { |
776 elements.getAllAnnotationMirrors(e) ) { |