spring-hateoas-ext/src/main/java/de/escalon/hypermedia/spring/AffordanceBuilderFactory.java
private static Map<String, ActionInputParameter> getActionInputParameters(Class<? extends Annotation> annotation,
                                                                              Method method, Object... arguments
    ) {

        Assert.notNull(method, "MethodInvocation must not be null!");

        MethodParameters parameters = new MethodParameters(method);
        Map<String, ActionInputParameter> result = new HashMap<String, ActionInputParameter>();

        for (MethodParameter parameter : parameters.getParametersWith(annotation)) {
            final int parameterIndex = parameter.getParameterIndex();
            final Object argument;
            if (parameterIndex < arguments.length) {
                argument = arguments[parameterIndex];
            } else {
                argument = null;
            }
            ActionInputParameter inputParameter = new SpringActionInputParameter(parameter, argument);
            result.put(inputParameter.getParameterName(), inputParameter);
        }

        return result;
    }
private static Map<String, ActionInputParameter> getActionInputParameters(Class<? extends Annotation> annotation,
                                                                              Method method, Object... arguments
    ) {

        Assert.notNull(method, "MethodInvocation must not be null!");

        MethodParameters parameters = new MethodParameters(method);
        Map<String, ActionInputParameter> result = new HashMap<String, ActionInputParameter>();

        for (MethodParameter parameter : parameters.getParametersWith(annotation)) {
            final int parameterIndex = parameter.getParameterIndex();
            final Object argument;
            if (parameterIndex < arguments.length) {
                argument = arguments[parameterIndex];
            } else {
                argument = null;
            }
            ActionInputParameter inputParameter = new SpringActionInputParameter(parameter, argument);
            result.put(inputParameter.getParameterName(), inputParameter);
        }

        return result;
    }
private static Map < String , ActionInputParameter > getActionInputParameters ( Class < ? extends Annotation > annotation , Method method , Object ... arguments ) { Assert . notNull ( method , "MethodInvocation must not be null!" ) ; MethodParameters parameters = new MethodParameters ( method ) ; Map < String , ActionInputParameter > result = new HashMap < String , ActionInputParameter > ( ) ; for ( MethodParameter parameter : parameters . getParametersWith ( annotation ) ) { final int parameterIndex = parameter . getParameterIndex ( ) ; final Object argument ; if ( parameterIndex < arguments . length ) { argument = arguments [ parameterIndex ] ; } else { argument = null ; } ActionInputParameter inputParameter = new SpringActionInputParameter ( parameter , argument ) ; result . put ( inputParameter . getParameterName ( ) , inputParameter ) ; } return result ; }
Returns {@link ActionInputParameter}s contained in the method link.

@param annotation to inspect
@param method     must not be {@literal null}.
@param arguments  to the method link
@return maps parameter names to parameter info
Returns { @link ActionInputParameter } s contained in the method link .