use of com.iggroup.oss.restdoclet.doclet.type.RequestParameter in project RESTdoclet by IG-Group.
the class MethodBuilder method initRequestParams.
/**
* Initialises the request-parameters of this method.
*
* @param params the method's parameters.
* @param tags the parameters' Java documentation tags.
*/
private void initRequestParams(Method method, final Parameter[] params, final ParamTag[] tags) {
LOG.debug(method.getName());
ArrayList<RequestParameter> requestParams = new ArrayList<RequestParameter>();
for (Parameter param : params) {
if (isAnnotated(param, RequestParam.class)) {
requestParams.add(new RequestParameterBuilder().build(new RequestParameter(), param, tags));
}
}
method.setRequestParams(requestParams);
}
Aggregations