code: public void generateMethodTypesScript(Map<String,Integer> typeMap,
              Set<MethodTypes> methodTypes) {
          String sep = "";
          StringBuilder vars = new StringBuilder("var methods = {");
          for (Map.Entry<String,Integer> entry : typeMap.entrySet()) {
              vars.append(sep);
              sep = ",";
              vars.append("\"")
                      .append(entry.getKey())
                      .append("\":")
                      .append(entry.getValue());
          }
          vars.append("};").append(DocletConstants.NL);
          sep = "";
          vars.append("var tabs = {");
          for (MethodTypes entry : methodTypes) {
              vars.append(sep);
              sep = ",";
              vars.append(entry.value())
                      .append(":")
                      .append("[")
                      .append("\"")
                      .append(entry.tabId())
                      .append("\"")
                      .append(sep)
                      .append("\"")
                      .append(configuration.getText(entry.resourceKey()))
                      .append("\"]");
          }
          vars.append("};")
                  .append(DocletConstants.NL);
          addStyles(HtmlStyle.altColor, vars);
          addStyles(HtmlStyle.rowColor, vars);
          addStyles(HtmlStyle.tableTab, vars);
          addStyles(HtmlStyle.activeTableTab, vars);
          script.addContent(new RawHtml(vars.toString()));
      }
docs: Generated javascript variables for the document.
  
  @param typeMap map comprising of method and type relationship
  @param methodTypes set comprising of all methods types for this class