code: public String getJniType(TypeMirror type) {
      if (TypeUtil.isPrimitiveOrVoid(type)) {
        return getPrimitiveObjCType(type);
      } else if (TypeUtil.isArray(type)) {
        return "jarray";
      } else if (typeUtil.isString(type)) {
        return "jstring";
      } else if (typeUtil.isClassType(type)) {
        return "jclass";
      }
      return "jobject";
    }
docs: Convert a Java type into the equivalent JNI type.