protected Map<String,RamlQueryParameter> extractQueryParameters(RamlActionType apiAction,Method method,Map<String,String> parameterComments){
  if (apiAction.equals(RamlActionType.POST) || method.getParameterCount() == 0) {
    return Collections.emptyMap();
  }
  Map<String,RamlQueryParameter> queryParams=new LinkedHashMap<>();
  for (  Parameter param : method.getParameters()) {
    if (isQueryParameter(param)) {
      RamlParamType simpleType=SchemaHelper.mapSimpleType(param.getType());
      if (simpleType == null) {
        queryParams.putAll(SchemaHelper.convertClassToQueryParameters(param,javaDocs.getJavaDoc(param.getType())));
      }
 else {
        String paramComment=parameterComments.get(param.getName());
        queryParams.putAll(SchemaHelper.convertParameterToQueryParameter(param,paramComment));
      }
    }
  }
  return queryParams;
}

protected Map < String , RamlQueryParameter > extractQueryParameters ( RamlActionType apiAction , Method method , Map < String , String > parameterComments ) { if ( apiAction . equals ( RamlActionType . POST ) || method . getParameterCount ( ) == 0 ) { return Collections . emptyMap ( ) ; } Map < String , RamlQueryParameter > queryParams = new LinkedHashMap < > ( ) ; for ( Parameter param : method . getParameters ( ) ) { if ( isQueryParameter ( param ) ) { RamlParamType simpleType = SchemaHelper . mapSimpleType ( param . getType ( ) ) ; if ( simpleType == null ) { queryParams . putAll ( SchemaHelper . convertClassToQueryParameters ( param , javaDocs . getJavaDoc ( param . getType ( ) ) ) ) ; } else { String paramComment = parameterComments . get ( param . getName ( ) ) ; queryParams . putAll ( SchemaHelper . convertParameterToQueryParameter ( param , paramComment ) ) ; } } } return queryParams ; }
extracts parameters from a method call and attaches these with the comments extracted from the javadoc
