code: protected Content getClassLink(LinkInfo linkInfo) {
          LinkInfoImpl classLinkInfo = (LinkInfoImpl) linkInfo;
          boolean noLabel = linkInfo.label == null || linkInfo.label.isEmpty();
          ClassDoc classDoc = classLinkInfo.classDoc;
          //Create a tool tip if we are linking to a class or interface.  Don't
          //create one if we are linking to a member.
          String title =
              (classLinkInfo.where == null || classLinkInfo.where.length() == 0) ?
                  getClassToolTip(classDoc,
                      classLinkInfo.type != null &&
                      !classDoc.qualifiedTypeName().equals(classLinkInfo.type.qualifiedTypeName())) :
              "";
          Content label = classLinkInfo.getClassLinkLabel(m_writer.configuration);
          Configuration configuration = m_writer.configuration;
          Content link = new ContentBuilder();
          if (classDoc.isIncluded()) {
              if (configuration.isGeneratedDoc(classDoc)) {
                  DocPath filename = getPath(classLinkInfo);
                  if (linkInfo.linkToSelf ||
                                  !(DocPath.forName(classDoc)).equals(m_writer.filename)) {
                          link.addContent(m_writer.getHyperLink(
                                  filename.fragment(classLinkInfo.where),
                              label,
                              classLinkInfo.isStrong, classLinkInfo.styleName,
                              title, classLinkInfo.target));
                          if (noLabel && !classLinkInfo.excludeTypeParameterLinks) {
                              link.addContent(getTypeParameterLinks(linkInfo));
                          }
                          return link;
                  }
              }
          } else {
              Content crossLink = m_writer.getCrossClassLink(
                  classDoc.qualifiedName(), classLinkInfo.where,
                  label, classLinkInfo.isStrong, classLinkInfo.styleName,
                  true);
              if (crossLink != null) {
                  link.addContent(crossLink);
                  if (noLabel && !classLinkInfo.excludeTypeParameterLinks) {
                      link.addContent(getTypeParameterLinks(linkInfo));
                  }
                  return link;
              }
          }
          // Can't link so just write label.
          link.addContent(label);
          if (noLabel && !classLinkInfo.excludeTypeParameterLinks) {
              link.addContent(getTypeParameterLinks(linkInfo));
          }
          return link;
      }
docs: {@inheritDoc}