public List<Annotated<Field>> findAnnotatedFields(final Class<? extends Annotation> annotation) { Finder.this.findAnnotatedFields(annotation); return typed(FieldInfo.class, getAnnotationInfos(annotation.getName())::stream).map(fieldInfo -> { try { return new IncludesClassfile<>((Field) fieldInfo.get(), classfileAnnotationsFor(fieldInfo)); } catch (final ClassNotFoundException e) { return null; } }).filter(hasAnnotation(annotation)).collect(Collectors.toList()); }
fields.add((Field) fieldInfo.get()); } catch (ClassNotFoundException e) { classesNotLoaded.add(fieldInfo.getDeclaringClass().getName());
fields.add((Field) fieldInfo.get()); } catch (ClassNotFoundException e) { classesNotLoaded.add(fieldInfo.getDeclaringClass().getName());
fieldAnnotations.forEach((k, v) -> { try { if (k.get().equals(fld.getTarget())) { fld.addAnnotations(v);
@Override public Annotation[] getDeclaredAnnotations() { super.getDeclaredAnnotations(); try { return ((AnnotatedElement) get()).getDeclaredAnnotations(); } catch (ClassNotFoundException e) { return super.getDeclaredAnnotations(); } }
@Override public Annotation[] getDeclaredAnnotations() { super.getDeclaredAnnotations(); try { return ((AnnotatedElement) get()).getDeclaredAnnotations(); } catch (ClassNotFoundException e) { return super.getDeclaredAnnotations(); } }
@Override public Annotation[] getDeclaredAnnotations() { super.getDeclaredAnnotations(); try { return ((AnnotatedElement) get()).getDeclaredAnnotations(); } catch (ClassNotFoundException e) { return super.getDeclaredAnnotations(); } }