/** * Reads {@link AnnotationData annotation data} on provided type. * If annotation is not presented, <code>null</code> is returned. */ public D readAnnotationData(Class<?> type) { A annotation = type.getAnnotation(annotationClass); if (annotation == null) { return null; } return createAnnotationData(annotation); }
/** * Reads {@link AnnotationData annotation data} on provided accessible object. * If annotation is not presented, <code>null</code> is returned. */ public D readAnnotationData(AccessibleObject accessibleObject) { A annotation = accessibleObject.getAnnotation(annotationClass); if (annotation == null) { return null; } return createAnnotationData(annotation); }
/** * Reads {@link AnnotationData annotation data} on provided type. * If annotation is not presented, <code>null</code> is returned. */ public D readAnnotationData(Class<?> type) { A annotation = type.getAnnotation(annotationClass); if (annotation == null) { return null; } return createAnnotationData(annotation); }
/** * Reads {@link AnnotationData annotation data} on provided accessible object. * If annotation is not presented, <code>null</code> is returned. */ public D readAnnotationData(AccessibleObject accessibleObject) { A annotation = accessibleObject.getAnnotation(annotationClass); if (annotation == null) { return null; } return createAnnotationData(annotation); }