Examples of asSpreader()


Examples of java.lang.invoke.MethodHandle.asSpreader()

                .filterReturn(resultFilter)
                .invoke(nativeInvoker);

        if (signature.getParameterCount() > 3) {
            // Expand the incoming IRubyObject[] parameter array to individual params
            targetHandle = targetHandle.asSpreader(IRubyObject[].class, signature.getParameterCount());
        }

        MethodHandle methodHandle = Binder.from(site.type())
                .drop(0, 3).invoke(targetHandle);
View Full Code Here

Examples of java.lang.invoke.MethodHandle.asSpreader()

            }

            int argCount = method.getArity().getValue();
            if (argCount > 3) {
                // Expand the incoming IRubyObject[] parameter array to individual params
                nativeTarget = nativeTarget.asSpreader(IRubyObject[].class, argCount);
            }

            nativeTarget = Binder.from(site.type())
                    .drop(1, 1)
                    .insert(2, method.getImplementationClass(), site.name())
View Full Code Here

Examples of java.lang.invoke.MethodHandle.asSpreader()

                .filter(0, guards)
                .invoke(isTrue);

        if (signature.getParameterCount() > 3) {
            // Expand the incoming IRubyObject[] parameter array to individual params
            isTrue = isTrue.asSpreader(IRubyObject[].class, signature.getParameterCount());
        }

        return Binder.from(site.type().changeReturnType(boolean.class))
                .drop(0, 3)
                .invoke(isTrue);
View Full Code Here

Examples of java.lang.invoke.MethodHandle.asSpreader()

                .filterReturn(resultFilter)
                .invoke(nativeInvoker);

        if (signature.getParameterCount() > 3) {
            // Expand the incoming IRubyObject[] parameter array to individual params
            targetHandle = targetHandle.asSpreader(IRubyObject[].class, signature.getParameterCount());
        }

        MethodHandle methodHandle = Binder.from(site.type())
                .drop(0, 3).invoke(targetHandle);
View Full Code Here

Examples of java.lang.invoke.MethodHandle.asSpreader()

        }

        int argCount = method.getArity().getValue();
        if (argCount > 3) {
            // Expand the incoming IRubyObject[] parameter array to individual params
            nativeTarget = nativeTarget.asSpreader(IRubyObject[].class, argCount);
        }

        nativeTarget = Binder.from(site.type())
                .drop(1, 1)
                .insert(2, method.getImplementationClass(), site.name())
View Full Code Here

Examples of java.lang.invoke.MethodHandle.asSpreader()

                .filter(0, guards)
                .invoke(isTrue);

        if (signature.getParameterCount() > 3) {
            // Expand the incoming IRubyObject[] parameter array to individual params
            isTrue = isTrue.asSpreader(IRubyObject[].class, signature.getParameterCount());
        }

        return Binder.from(site.type().changeReturnType(boolean.class))
                .drop(0, 3)
                .invoke(isTrue);
View Full Code Here

Examples of java.lang.invoke.MethodHandle.asSpreader()

    public final Object invokeDynamic(final Object... args) throws TargetInvocationException {
        try {
            if (_spreadInvoker == null) {
                final MethodHandle methodHandle = getMethodHandle();
                _spreadInvoker = methodHandle.asSpreader(Object[].class, _method.getParameters().size());
            }
            return _spreadInvoker.invoke(args);
        }
        catch (Throwable t) {
            throw new TargetInvocationException(t);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.