Package java.lang.invoke

Examples of java.lang.invoke.CallSite


        return bindFunction(operatorInfo.getOperatorType().toString(), getSessionByteCode, arguments, operatorInfo.getFunctionBinder());
    }

    public CallSite bootstrap(String name, MethodType type, long bindingId)
    {
        CallSite callSite = bindings.get(bindingId);
        checkArgument(callSite != null, "Binding %s for function %s%s not found", bindingId, name, type.parameterList());

        return callSite;
    }
View Full Code Here


            if (escapeNode == null) {
                methodHandle = MethodHandles.insertArguments(methodHandle, 2, (Object) null);
            }
        }

        CallSite callSite = new ConstantCallSite(methodHandle);
        return new FunctionBinding(bindingId, name, callSite, arguments, false);
    }
View Full Code Here

                unboundArguments.add(argument);
                argIndex++;
            }
        }

        CallSite callSite = new ConstantCallSite(methodHandle);
        return new FunctionBinding(bindingId, name, callSite, unboundArguments.build(), nullable);
    }
View Full Code Here

        return bindFunction(operatorInfo.getSignature().getName(), getSessionByteCode, arguments, operatorInfo.getFunctionBinder());
    }

    public CallSite bootstrap(String name, MethodType type, long bindingId)
    {
        CallSite callSite = bindings.get(bindingId);
        checkArgument(callSite != null, "Binding %s for function %s%s not found", bindingId, name, type.parameterList());

        return callSite;
    }
View Full Code Here

            if (escapeNode == null) {
                methodHandle = MethodHandles.insertArguments(methodHandle, 2, (Object) null);
            }
        }

        CallSite callSite = new ConstantCallSite(methodHandle);
        return new FunctionBinding(bindingId, name, callSite, arguments, false);
    }
View Full Code Here

                unboundArguments.add(argument);
                argIndex++;
            }
        }

        CallSite callSite = new ConstantCallSite(methodHandle);
        return new FunctionBinding(bindingId, name, callSite, unboundArguments.build(), nullable);
    }
View Full Code Here

        }
    }

    public static CallSite bootstrap(MethodHandles.Lookup lookup, String name,
            MethodType callSiteType) {
        final CallSite cs = new MonomorphicCallSite(lookup, name, callSiteType);
        MethodHandle boundInvoker =
                MethodHandles.insertArguments(INVOKE_DYNAMICALLY, 0, cs);
        MethodHandle collectedArgsInvoker =
                boundInvoker.asCollector(Object.class, callSiteType
                        .parameterCount()
                        - boundInvoker.type().parameterCount() + 1);
        MethodHandle convertedArgsInvoker =
                MethodHandles.convertArguments(collectedArgsInvoker,
                        callSiteType);
        cs.setTarget(convertedArgsInvoker);
        return cs;
    }
View Full Code Here

TOP

Related Classes of java.lang.invoke.CallSite

Copyright © 2018 www.massapicom. 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.