code: public static PPrimitive findByName(String name) {
          switch (name) {
              case "void":
                  return VOID;
              case "bool":
                  return BOOL;
              case "byte":
              case "i8":
                  return BYTE;
              case "i16":
                  return I16;
              case "i32":
                  return I32;
              case "i64":
                  return I64;
              case "double":
                  return DOUBLE;
              case "string":
                  return STRING;
              case "binary":
                  return BINARY;
          }
          return null;
      }
docs: Find primitive by name.
  @param name The name of the primitive.
  @return The primitive descriptor.