Examples of primitiveType()


Examples of org.apache.derby.iapi.services.loader.ClassInspector.primitiveType()

      {
        // since we reached here through method resolution
        // casts are only required for primitive types.
        // In any other case the expression type must be assignable
        // to the parameter type.
        if (classInspector.primitiveType(parameterType)) {
          mb.cast(parameterType);
        } else {

          // for a prodcedure
          if (routineInfo != null) {
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.primitiveType()

      {
        // since we reached here through method resolution
        // casts are only required for primitive types.
        // In any other case the expression type must be assignable
        // to the parameter type.
        if (classInspector.primitiveType(parameterType)) {

          mb.cast(parameterType);

        } else {
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.primitiveType()

    methodParameterTypes = classInspector.getParameterTypes(method);

    for (int i = 0; i < methodParameterTypes.length; i++)
    {
      if (classInspector.primitiveType(methodParameterTypes[i]))
        methodParms[i].castToPrimitive(true);
    }

    /* Set type info for any null parameters */
    if ( someParametersAreNull() )
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.primitiveType()

    /*
    ** Don't generate the expression now if it returns a primitive
    ** type to the Java domain.
    */
    if ( (! valueReturnedToSQLDomain()) &&
        classInspector.primitiveType(getJavaTypeName()))
    {
      return false;
    }

    /*
 
View Full Code Here

Examples of sun.invoke.util.Wrapper.primitiveType()

        if (rtype != void.class && rtype.isPrimitive()) {
            Wrapper srcWrapper = Wrapper.forBasicType(rtype);
            Wrapper dstWrapper = srcWrapper.isSubwordOrInt() ? Wrapper.INT : srcWrapper;  // widen subword to int
            // boolean casts not allowed
            emitPrimCast(srcWrapper.basicTypeChar(), dstWrapper.basicTypeChar());
            emitBoxing(dstWrapper.primitiveType());
        }

        // If the return type is void we return a null reference.
        if (rtype == void.class) {
            mv.visitInsn(Opcodes.ACONST_NULL);
View Full Code Here

Examples of sun.invoke.util.Wrapper.primitiveType()

        boolean isGetter  = (formOp & 1) == (AF_GETFIELD & 1);
        boolean isStatic  = (formOp >= AF_GETSTATIC);
        boolean needsInit = (formOp >= AF_GETSTATIC_INIT);
        boolean needsCast = (ftypeKind == FT_CHECKED_REF);
        Wrapper fw = (needsCast ? Wrapper.OBJECT : Wrapper.values()[ftypeKind]);
        Class<?> ft = fw.primitiveType();
        assert(ftypeKind(needsCast ? String.class : ft) == ftypeKind);
        String tname  = fw.primitiveSimpleName();
        String ctname = Character.toUpperCase(tname.charAt(0)) + tname.substring(1);
        if (isVolatilectname += "Volatile";
        String getOrPut = (isGetter ? "get" : "put");
View Full Code Here

Examples of sun.invoke.util.Wrapper.primitiveType()

        Class<?> iret = internalType.returnType();
        Wrapper wrap = Wrapper.forBasicType(tret);
        if (!iret.isPrimitive()) {
            assert(iret == Object.class);
            return ValueConversions.identity();
        } else if (wrap.primitiveType() == iret) {
            return ValueConversions.box(wrap);
        } else {
            assert(tret == double.class ? iret == long.class : iret == int.class);
            return ValueConversions.boxRaw(wrap);
        }
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.