public static final DynamicMethod createDynamicMethod(Ruby runtime, RubyModule module, com.kenai.jffi.Function function, Type returnType, Type[] parameterTypes, CallingConvention convention, IRubyObject enums, boolean ignoreErrno) { final MethodFactory[] factories = new MethodFactory[] { DefaultMethodFactory.getFactory() }; for (MethodFactory f : factories) { if (f.isSupported(returnType, parameterTypes, convention)) { return f.createMethod(module, function, returnType, parameterTypes, convention, enums, ignoreErrno); } } throw runtime.newRuntimeError("cannot create dynamic method"); }
public static final DynamicMethod createDynamicMethod(Ruby runtime, RubyModule module, com.kenai.jffi.Function function, Type returnType, Type[] parameterTypes, CallingConvention convention, IRubyObject enums, boolean ignoreErrno) { final MethodFactory[] factories = new MethodFactory[] { DefaultMethodFactory.getFactory() }; for (MethodFactory f : factories) { if (f.isSupported(returnType, parameterTypes, convention)) { return f.createMethod(module, function, returnType, parameterTypes, convention, enums, ignoreErrno); } } throw runtime.newRuntimeError("cannot create dynamic method"); }
public static final DynamicMethod createDynamicMethod(Ruby runtime, RubyModule module, com.kenai.jffi.Function function, Type returnType, Type[] parameterTypes, CallingConvention convention, IRubyObject enums, boolean ignoreErrno) { final MethodFactory[] factories = new MethodFactory[] { DefaultMethodFactory.getFactory() }; for (MethodFactory f : factories) { if (f.isSupported(returnType, parameterTypes, convention)) { return f.createMethod(module, function, returnType, parameterTypes, convention, enums, ignoreErrno); } } throw runtime.newRuntimeError("cannot create dynamic method"); }
public static final DynamicMethod createDynamicMethod(Ruby runtime, RubyModule module, com.kenai.jffi.Function function, Type returnType, Type[] parameterTypes, CallingConvention convention, IRubyObject enums, boolean ignoreErrno) { final MethodFactory[] factories = new MethodFactory[] { DefaultMethodFactory.getFactory() }; for (MethodFactory f : factories) { if (f.isSupported(returnType, parameterTypes, convention)) { return f.createMethod(module, function, returnType, parameterTypes, convention, enums, ignoreErrno); } } throw runtime.newRuntimeError("cannot create dynamic method"); }