private List<List<JsonRpcParam>> getJsonRpcParamAnnotations(Method method) { return ReflectionUtil.getParameterAnnotations(method, JsonRpcParam.class); }
private List<? extends List<? extends Annotation>> getWebParameterAnnotations(Method method) { if (WEB_PARAM_ANNOTATION_CLASS == null) { return new ArrayList<>(); } return ReflectionUtil.getParameterAnnotations(method, WEB_PARAM_ANNOTATION_CLASS); }
/** * Returns the parameter {@link Annotation}s of the * given type for the given {@link Method}. * * @param <T> the {@link Annotation} type * @param type the type * @param method the {@link Method} * @return the {@link Annotation}s */ static <T extends Annotation> List<List<T>> getParameterAnnotations(Method method, Class<T> type) { List<List<T>> annotations = new ArrayList<>(); for (List<Annotation> paramAnnotations : getParameterAnnotations(method)) { annotations.add(filterAnnotations(paramAnnotations, type)); } return annotations; }