code: public void buildEnumConstant(XMLNode node, Content memberDetailsTree) {
          if (writer == null) {
              return;
          }
          int size = enumConstants.size();
          if (size > 0) {
              Content enumConstantsDetailsTree = writer.getEnumConstantsDetailsTreeHeader(
                      classDoc, memberDetailsTree);
              for (currentEnumConstantsIndex = 0; currentEnumConstantsIndex < size;
                      currentEnumConstantsIndex++) {
                  Content enumConstantsTree = writer.getEnumConstantsTreeHeader(
                          (FieldDoc) enumConstants.get(currentEnumConstantsIndex),
                          enumConstantsDetailsTree);
                  buildChildren(node, enumConstantsTree);
                  enumConstantsDetailsTree.addContent(writer.getEnumConstants(
                          enumConstantsTree, (currentEnumConstantsIndex == size - 1)));
              }
              memberDetailsTree.addContent(
                      writer.getEnumConstantsDetails(enumConstantsDetailsTree));
          }
      }
docs: Build the enum constant documentation.
  
  @param node the XML element that specifies which components to document
  @param memberDetailsTree the content tree to which the documentation will be added