@Test public void shouldNotAllowNullMethod() { assertThrows(NullPointerException.class, () -> AnnotatedMethod.create(null)); }
public static AnnotatedMethod create(Method method) { return new AnnotatedMethod(Objects.requireNonNull(method)); }
AnnotatedMethod implements AnnotatedElement { public static AnnotatedMethod create(Method method) { return new AnnotatedMethod(Objects.requireNonNull(method)); } }
AnnotatedMethod implements AnnotatedElement { public static AnnotatedMethod create(Method method) { return new AnnotatedMethod(Objects.requireNonNull(method)); } private  AnnotatedMethod(Method method); }
AnnotatedMethod implements AnnotatedElement { public static AnnotatedMethod create(Method method) { return new AnnotatedMethod(Objects.requireNonNull(method)); } private  AnnotatedMethod(Method method); static AnnotatedMethod create(Method method); Method method(); Method declaredMethod(); Annotation[][] parameterAnnotations(); Class<?>[] parameterTypes(); TypeVariable<Method>[] typeParameters(); Type[] genericParameterTypes(); Type genericReturnType(); Class<?> returnType(); Stream<T> metaMethodAnnotations(Class<T> annotation); T firstAnnotationOrMetaAnnotation(Class<T> type); Stream<T> annotationOrMetaAnnotation(Class<T> type); Stream<Annotation> annotationsWithMetaAnnotation(Class<? extends Annotation> type); @Override T getAnnotation(Class<T> annotationType); @Override Annotation[] getAnnotations(); @Override Annotation[] getDeclaredAnnotations(); @Override String toString(); }
AnnotatedMethod implements AnnotatedElement { public static AnnotatedMethod create(Method method) { return new AnnotatedMethod(Objects.requireNonNull(method)); } private  AnnotatedMethod(Method method); static AnnotatedMethod create(Method method); Method method(); Method declaredMethod(); Annotation[][] parameterAnnotations(); Class<?>[] parameterTypes(); TypeVariable<Method>[] typeParameters(); Type[] genericParameterTypes(); Type genericReturnType(); Class<?> returnType(); Stream<T> metaMethodAnnotations(Class<T> annotation); T firstAnnotationOrMetaAnnotation(Class<T> type); Stream<T> annotationOrMetaAnnotation(Class<T> type); Stream<Annotation> annotationsWithMetaAnnotation(Class<? extends Annotation> type); @Override T getAnnotation(Class<T> annotationType); @Override Annotation[] getAnnotations(); @Override Annotation[] getDeclaredAnnotations(); @Override String toString();  }