code: public void buildEnumConstant(XMLNode node, Content memberDetailsTree) throws DocletException {
          if (writer == null) {
              return;
          }
          if (hasMembersToDocument()) {
              Content enumConstantsDetailsTree = writer.getEnumConstantsDetailsTreeHeader(typeElement,
                      memberDetailsTree);
              Element lastElement = enumConstants.get(enumConstants.size() - 1);
              for (Element enumConstant : enumConstants) {
                  currentElement = (VariableElement)enumConstant;
                  Content enumConstantsTree = writer.getEnumConstantsTreeHeader(currentElement,
                          enumConstantsDetailsTree);
                  buildChildren(node, enumConstantsTree);
                  enumConstantsDetailsTree.addContent(writer.getEnumConstants(
                          enumConstantsTree, currentElement == lastElement));
              }
              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
  @throws DocletException is there is a problem while building the documentation