Class[] parameterTypes = callMethod.getParameterTypes();
FromNativeType[] parameterSigTypes = new FromNativeType[parameterTypes.length];
for (int i = 0; i < parameterTypes.length; ++i) {
parameterSigTypes[i] = getParameterType(runtime, callMethod, i, typeMapper);
}
ToNativeType resultType = getResultType(runtime, callMethod, typeMapper);
return new NativeClosureFactory(runtime, getCallContext(resultType, parameterSigTypes, getNativeCallingConvention(callMethod), false),
NativeClosureProxy.newProxyFactory(runtime, callMethod, resultType, parameterSigTypes, classLoader));
}