docs: static void appendConstant(final StringBuffer buf, final Object cst) {
          if (cst == null) {
              buf.append("null");
          } else if (cst instanceof String) {
              appendString(buf, (String) cst);
          } else if (cst instanceof Type) {
              buf.append("Type.getType(\"");
              buf.append(((Type) cst).getDescriptor());
              buf.append("\")");
          } else if (cst instanceof Handle) {
              buf.append("new Handle(");
              Handle h = (Handle) cst;
              buf.append("Opcodes.").append(HANDLE_TAG[h.getTag()])
                      .append(", \"");
              buf.append(h.getOwner()).append("\", \"");
              buf.append(h.getName()).append("\", \"");
              buf.append(h.getDesc()).append("\")");
          } else if (cst instanceof Byte) {
              buf.append("new Byte((byte)").append(cst).append(')');
          } else if (cst instanceof Boolean) {
              buf.append(((Boolean) cst).booleanValue() ? "Boolean.TRUE"
                      : "Boolean.FALSE");
          } else if (cst instanceof Short) {
              buf.append("new Short((short)").append(cst).append(')');
          } else if (cst instanceof Character) {
              int c = ((Character) cst).charValue();
              buf.append("new Character((char)").append(c).append(')');
          } else if (cst instanceof Integer) {
              buf.append("new Integer(").append(cst).append(')');
          } else if (cst instanceof Float) {
              buf.append("new Float(\"").append(cst).append("\")");
          } else if (cst instanceof Long) {
              buf.append("new Long(").append(cst).append("L)");
          } else if (cst instanceof Double) {
              buf.append("new Double(\"").append(cst).append("\")");
          } else if (cst instanceof byte[]) {
              byte[] v = (byte[]) cst;
              buf.append("new byte[] {");
              for (int i = 0; i < v.length; i++) {
                  buf.append(i == 0 ? "" : ",").append(v[i]);
              }
              buf.append('}');
          }