public static List < ActionParameter > buildActionParameterList ( Method method ) { List < ActionParameter > arguments = new ArrayList <> ( ) ; Annotation [ ] [ ] annotations = method . getParameterAnnotations ( ) ; Class < ? > [ ] typesOfParameters = method . getParameterTypes ( ) ; Type [ ] genericTypeOfParameters = method . getGenericParameterTypes ( ) ; for ( int i = 0 ; i < annotations . length ; i ++ ) { arguments . add ( ActionParameter . from ( method , annotations [ i ] , typesOfParameters [ i ] , genericTypeOfParameters [ i ] ) ) ; } return arguments ; }
Gets the list of Argument i . e . formal parameter metadata for the given method .