Examples of parameterList()


Examples of java.lang.invoke.MethodType.parameterList()

                .setDescription("invoke")
                .comment(comment);
        ArrayList<Class<?>> stackTypes = new ArrayList<>();
        for (int i = 0; i < arguments.size(); i++) {
            TypedByteCodeNode argument = arguments.get(i);
            Class<?> argumentType = methodType.parameterList().get(i);
            block.append(coerceToType(context, argument, argumentType).getNode());

            stackTypes.add(argument.getType());
            block.append(ifWasNullPopAndGoto(context, end, unboxedReturnType, Lists.reverse(stackTypes)));
        }
View Full Code Here

Examples of java.lang.invoke.MethodType.parameterList()

                .setDescription("invoke")
                .comment(comment);
        ArrayList<Class<?>> stackTypes = new ArrayList<>();
        for (int i = 0; i < arguments.size(); i++) {
            TypedByteCodeNode argument = arguments.get(i);
            Class<?> argumentType = methodType.parameterList().get(i);
            block.append(coerceToType(context, argument, argumentType).getNode());

            stackTypes.add(argument.getType());
            block.append(ifWasNullPopAndGoto(context, end, unboxedReturnType, Lists.reverse(stackTypes)));
        }
View Full Code Here

Examples of java.lang.invoke.MethodType.parameterList()

        // produced invocation into contextual invocation (by dropping the context...)
        if(runtimeContextArgCount > 0) {
            final MethodType origType = callSiteDescriptor.getMethodType();
            final MethodHandle invocation = guardedInvocation.getInvocation();
            if(invocation.type().parameterCount() == origType.parameterCount() - runtimeContextArgCount) {
                final List<Class<?>> prefix = origType.parameterList().subList(1, runtimeContextArgCount + 1);
                final MethodHandle guard = guardedInvocation.getGuard();
                guardedInvocation = guardedInvocation.dropArguments(1, prefix);
            }
        }
View Full Code Here

Examples of java.lang.invoke.MethodType.parameterList()

                final MethodHandle fallbackFolded;
                if(nextComponent == null) {
                    // Object(AnnotatedDynamicMethod)->R(AnnotatedDynamicMethod, T0, T1); returns constant null
                    fallbackFolded = MethodHandles.dropArguments(CONSTANT_NULL_DROP_ANNOTATED_METHOD, 1,
                            type.parameterList()).asType(type.insertParameterTypes(0, AnnotatedDynamicMethod.class));
                } else {
                    // R(T0, T1)->R(AnnotatedDynamicMethod, T0, T1); adapts the next component's invocation to drop the
                    // extra argument resulting from fold
                    fallbackFolded = MethodHandles.dropArguments(nextComponent.getGuardedInvocation().getInvocation(),
                            0, AnnotatedDynamicMethod.class);
View Full Code Here

Examples of java.lang.invoke.MethodType.parameterList()

                final MethodHandle typedGetter = linkerServices.asType(getDynamicMethod, type.changeReturnType(
                        DynamicMethod.class));
                // Since it is part of the foldArgument() target, it will have extra args that we need to drop.
                final MethodHandle returnMethodHandle = linkerServices.asType(MethodHandles.dropArguments(
                        DYNAMIC_METHOD_IDENTITY, 1, type.parameterList()), type.insertParameterTypes(0,
                                DynamicMethod.class));
                final MethodHandle nextComponentInvocation = nextComponent.getGuardedInvocation().getInvocation();
                // The assumption is that getGuardedInvocationComponent() already asType()'d it correctly
                assert nextComponentInvocation.type().equals(type);
                // Since it is part of the foldArgument() target, we have to drop an extra arg it receives.
View Full Code Here

Examples of macromedia.asc.parser.NodeFactory.parameterList()

        IdentifierNode addEventListenerIdentifier = nodeFactory.identifier(ADD_EVENT_LISTENER, false);
        FunctionNameNode functionName = nodeFactory.functionName(Tokens.EMPTY_TOKEN, addEventListenerIdentifier);

        ParameterNode typeParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, TYPE, STRING, false);
        ParameterListNode parameterList = nodeFactory.parameterList(null, typeParameter);
        ParameterNode listenerParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, LISTENER, FUNCTION, false);
        parameterList = nodeFactory.parameterList(parameterList, listenerParameter);
        LiteralBooleanNode literalBoolean = nodeFactory.literalBoolean(false);
        ParameterNode useCaptureParameter =
View Full Code Here

Examples of macromedia.asc.parser.NodeFactory.parameterList()

        ParameterNode typeParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, TYPE, STRING, false);
        ParameterListNode parameterList = nodeFactory.parameterList(null, typeParameter);
        ParameterNode listenerParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, LISTENER, FUNCTION, false);
        parameterList = nodeFactory.parameterList(parameterList, listenerParameter);
        LiteralBooleanNode literalBoolean = nodeFactory.literalBoolean(false);
        ParameterNode useCaptureParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, USE_CAPTURE, BOOLEAN,
                                                     false, literalBoolean);
        parameterList = nodeFactory.parameterList(parameterList, useCaptureParameter);
View Full Code Here

Examples of macromedia.asc.parser.NodeFactory.parameterList()

        parameterList = nodeFactory.parameterList(parameterList, listenerParameter);
        LiteralBooleanNode literalBoolean = nodeFactory.literalBoolean(false);
        ParameterNode useCaptureParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, USE_CAPTURE, BOOLEAN,
                                                     false, literalBoolean);
        parameterList = nodeFactory.parameterList(parameterList, useCaptureParameter);
        LiteralNumberNode literalNumber = nodeFactory.literalNumber(0);
        ParameterNode priorityParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, PRIORITY, INT,
                                                     false, literalNumber);
        parameterList = nodeFactory.parameterList(parameterList, priorityParameter);
View Full Code Here

Examples of macromedia.asc.parser.NodeFactory.parameterList()

        parameterList = nodeFactory.parameterList(parameterList, useCaptureParameter);
        LiteralNumberNode literalNumber = nodeFactory.literalNumber(0);
        ParameterNode priorityParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, PRIORITY, INT,
                                                     false, literalNumber);
        parameterList = nodeFactory.parameterList(parameterList, priorityParameter);
        literalBoolean = nodeFactory.literalBoolean(false);
        ParameterNode weakRefParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, WEAK_REF, BOOLEAN,
                                                     false, literalBoolean);
        parameterList = nodeFactory.parameterList(parameterList, weakRefParameter);
View Full Code Here

Examples of macromedia.asc.parser.NodeFactory.parameterList()

        parameterList = nodeFactory.parameterList(parameterList, priorityParameter);
        literalBoolean = nodeFactory.literalBoolean(false);
        ParameterNode weakRefParameter =
            AbstractSyntaxTreeUtil.generateParameter(nodeFactory, WEAK_REF, BOOLEAN,
                                                     false, literalBoolean);
        parameterList = nodeFactory.parameterList(parameterList, weakRefParameter);
        FunctionSignatureNode functionSignature = nodeFactory.functionSignature(parameterList, null);
        functionSignature.void_anno = true;

        MemberExpressionNode _bindingEventDispatcherGetterSelector =
            AbstractSyntaxTreeUtil.generateGetterSelector(nodeFactory, _BINDING_EVENT_DISPATCHER, false);
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.