private String toString0(boolean human) {
    StringBuilder sb = new StringBuilder(40);

    sb.append(regString());
    sb.append(":");

    if (local != null) {
      sb.append(local.toString());
    }

    Type justType = type.getType();
    sb.append(justType);

    if (justType != type) {
      sb.append("=");
      if (human && (type instanceof CstString)) {
        sb.append(((CstString) type).toQuoted());
      } else if (human && (type instanceof Constant)) {
        sb.append(type.toHuman());
      } else {
        sb.append(type);
      }
    }

    return sb.toString();
  }
Helper for {@link #toString} and {@link #toHuman}.

@param human whether to be human-oriented
@return {@code non-null;} the string form
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/RegisterSpec.java