public static ArgumentListExpression createArgumentListFromParameters ( Parameter [ ] parameterTypes , boolean thisAsFirstArgument , Map < String , ClassNode > genericsPlaceholders ) { ArgumentListExpression arguments = new ArgumentListExpression ( ) ; if ( thisAsFirstArgument ) { arguments . addExpression ( new VariableExpression ( "this" ) ) ; } for ( Parameter parameterType : parameterTypes ) { arguments . addExpression ( new VariableExpression ( parameterType . getName ( ) , replaceGenericsPlaceholders ( parameterType . getType ( ) , genericsPlaceholders ) ) ) ; } return arguments ; }
Creates an argument list from the given parameter types .