code: private static int primitiveWidth(TypeDesc type) {
          switch (type.getTypeCode()) {
          default:
              return 0;
          case TypeDesc.BOOLEAN_CODE:
              return 1;
          case TypeDesc.BYTE_CODE:
              return 2;
          case TypeDesc.SHORT_CODE:
              return 3;
          case TypeDesc.CHAR_CODE:
              return 4;
          case TypeDesc.INT_CODE:
              return 5;
          case TypeDesc.FLOAT_CODE:
              return 6;
          case TypeDesc.LONG_CODE:
              return 7;
          case TypeDesc.DOUBLE_CODE:
              return 8;
          }
      }
docs: 1 = boolean, 2 = byte, 3 = short, 4 = char, 5 = int, 6 = float, 7 = long, 8 = double