Examples of returnType()


Examples of com.sun.javadoc.MethodDoc.returnType()

    }

    private static Type getReturnType(ExecutableMemberDoc method) {
        if (method instanceof MethodDoc) {
            MethodDoc m = (MethodDoc) method;
            return m.returnType();
        }
        return null;
    }

    private void addError(String s) {
View Full Code Here

Examples of com.sun.javadoc.MethodDoc.returnType()

            for (int m = 0; m < methodDocs.length; m++) {
                MethodDoc methodDoc = methodDocs[m];
                String methodName = methodDoc.name();

                // get return type
                String returnTypeString = getTypeString(methodDoc.returnType());
                int returnTypeLength = returnTypeString.replaceAll("<.*?>", "").replace("&lt;", "<").replace("&gt;", ">").length(); // length without HTML tags and &gt;/&lt; entities

                Parameter[] parameters = methodDoc.parameters();
                String[] parameterSignatures = new String[parameters.length];
                for (int i = 0; i < parameterSignatures.length; i++) {
View Full Code Here

Examples of com.sun.javadoc.MethodDoc.returnType()

        MethodDoc method = methods[j];
        Element function = document.createElement("function");
        cls.appendChild(function);
        function.setAttribute("name", method.name());
        function.setAttribute("description", method.commentText());
        function.setAttribute("type", method.returnType().typeName());

        Parameter[] params = method.parameters();
        for (int k = 0; k < params.length; k++) {
          Parameter param = params[k];
          Element parameter = document.createElement("parameter");
View Full Code Here

Examples of com.sun.jdi.Method.returnType()

    } else {
      // first check assignment compatible
      Method method = getUnderlyingMethod();
      try {
        ValueImpl.checkValue(((JDIValue) value).getUnderlyingValue(),
            method.returnType(),
            (VirtualMachineImpl) method.virtualMachine());
      } catch (InvalidTypeException e) {
        targetRequestFailed(JDIDebugModelMessages.JDIStackFrame_26, e);
      } catch (ClassNotLoadedException e) {
        targetRequestFailed(JDIDebugModelMessages.JDIThread_48, e);
View Full Code Here

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

        for (int i = 1; i < params.length; i++) {
            if (!params[i].isPrimitive())
                params[i] = Object.class;
        }

        Class<?> rtype = origType.returnType();
        if (field instanceof Field.ArrayField && rtype.isArray()) {
            if (!rtype.getComponentType().isPrimitive())
                rtype = Object[].class;
        } else if (!rtype.isPrimitive())
            rtype = Object.class;
View Full Code Here

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

        }
       
        // the actual native type with receiver
        MethodType nativeType = nativeTarget.type();
        Class[] nativeParams = nativeType.parameterArray();
        Class nativeReturn = nativeType.returnType();

        // convert arguments
        MethodHandle[] argConverters = new MethodHandle[nativeType.parameterCount()];
        for (int i = 0; i < argConverters.length; i++) {
            MethodHandle converter;
View Full Code Here

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

    private ByteCodeNode visitFunctionBinding(CompilerContext context, FunctionBinding functionBinding, String comment)
    {
        List<ByteCodeNode> arguments = functionBinding.getArguments();
        MethodType methodType = functionBinding.getCallSite().type();
        Class<?> unboxedReturnType = Primitives.unwrap(methodType.returnType());

        LabelNode end = new LabelNode("end");
        Block block = new Block(context)
                .setDescription("invoke")
                .comment(comment);
View Full Code Here

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

        block.invokeDynamic(functionBinding.getName(), methodType, functionBinding.getBindingId());

        if (functionBinding.isNullable()) {
            if (unboxedReturnType.isPrimitive()) {
                LabelNode notNull = new LabelNode("notNull");
                block.dup(methodType.returnType())
                        .ifNotNullGoto(notNull)
                        .putVariable("wasNull", true)
                        .comment("swap boxed null with unboxed default")
                        .pop(methodType.returnType())
                        .pushJavaDefault(unboxedReturnType)
View Full Code Here

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

                LabelNode notNull = new LabelNode("notNull");
                block.dup(methodType.returnType())
                        .ifNotNullGoto(notNull)
                        .putVariable("wasNull", true)
                        .comment("swap boxed null with unboxed default")
                        .pop(methodType.returnType())
                        .pushJavaDefault(unboxedReturnType)
                        .gotoLabel(end)
                        .visitLabel(notNull)
                        .append(unboxPrimitive(context, unboxedReturnType));
            }
View Full Code Here

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

                        .gotoLabel(end)
                        .visitLabel(notNull)
                        .append(unboxPrimitive(context, unboxedReturnType));
            }
            else {
                block.dup(methodType.returnType())
                        .ifNotNullGoto(end)
                        .putVariable("wasNull", true);
            }
        }
        block.visitLabel(end);
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.