@Override @Deprecated public Iterable<Annotation> annotations() { if (_annotations == null) { return Collections.emptyList(); } return _annotations.annotations(); }
@Override @Deprecated public Iterable<Annotation> annotations() { if (_classAnnotations instanceof AnnotationMap) { return ((AnnotationMap) _classAnnotations).annotations(); } else if (_classAnnotations instanceof AnnotationCollector.OneAnnotation || _classAnnotations instanceof AnnotationCollector.TwoAnnotations) { throw new UnsupportedOperationException("please use getAnnotations/ hasAnnotation to check for Annotations"); } return Collections.emptyList(); }
@Override public Iterable<Annotation> annotations() { return _classAnnotations.annotations(); }
@Override public Iterable<Annotation> annotations() { if (_annotations == null) { return Collections.emptyList(); } return _annotations.annotations(); }
@Override public Iterable<Annotation> annotations() { if (_annotations == null) { return Collections.emptyList(); } return _annotations.annotations(); }
@Override public Iterable<Annotation> annotations() { if (_annotations == null) { return Collections.emptyList(); } return _annotations.annotations(); }
@Override @Deprecated public Iterable<Annotation> annotations() { if (_annotations == null) { return Collections.emptyList(); } return _annotations.annotations(); }
@Override @Deprecated public Iterable<Annotation> annotations() { if (_classAnnotations instanceof AnnotationMap) { return ((AnnotationMap) _classAnnotations).annotations(); } else if (_classAnnotations instanceof AnnotationCollector.OneAnnotation || _classAnnotations instanceof AnnotationCollector.TwoAnnotations) { throw new UnsupportedOperationException("please use getAnnotations/ hasAnnotation to check for Annotations"); } return Collections.emptyList(); }
@Override public Iterable<Annotation> annotations() { if (_classAnnotations == null) { resolveClassAnnotations(); } return _classAnnotations.annotations(); }
@Override public Iterable<Annotation> annotations() { if (_classAnnotations == null) { resolveClassAnnotations(); } return _classAnnotations.annotations(); }
private Annotation[] annotations(BeanProperty beanProperty) { if (beanProperty == null) { return new Annotation[0]; } List<Annotation> annotations = new ArrayList<>(); beanProperty.getMember().getAllAnnotations().annotations().forEach(annotations::add); return annotations.toArray(new Annotation[0]); }
Annotation[] fieldAnnotations = Iterables.toArray(propDef.getField().getAllAnnotations().annotations(), Annotation.class); for (Annotation annotation : fieldAnnotations) { if (annotation.annotationType().equals(VersionedProperties.class)) {
for (final Annotation fieldAnnotation : annotationMap.annotations()) for (final Annotation fieldAnnotation : annotationMap.annotations()) for (final Annotation fieldAnnotation : annotationMap.annotations())
guiceAnnotation = findBindingAnnotation(anns.annotations()); } else if (m instanceof AnnotatedMethod) {
guiceAnnotation = findBindingAnnotation(anns.annotations()); } else if (m instanceof AnnotatedMethod) {
if (resolveReadOnly(Iterables.toArray(propDef.getField().getAllAnnotations().annotations(), Annotation.class))) { propertySchema.setReadOnly(true);