src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java

changeset 589
4177f5bdd189
parent 554
9d9f26857129
child 766
90af8d87741f
     1.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java	Fri Jun 18 16:45:13 2010 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java	Fri Jun 18 21:13:56 2010 -0700
     1.3 @@ -29,7 +29,6 @@
     1.4  import com.sun.tools.doclets.internal.toolkit.*;
     1.5  import com.sun.javadoc.*;
     1.6  import java.util.*;
     1.7 -import java.lang.reflect.*;
     1.8  
     1.9  /**
    1.10   * Builds documentation for a enum constants.
    1.11 @@ -116,22 +115,6 @@
    1.12          }
    1.13  
    1.14          /**
    1.15 -         * {@inheritDoc}
    1.16 -         */
    1.17 -        public void invokeMethod(
    1.18 -                String methodName,
    1.19 -                Class<?>[] paramClasses,
    1.20 -                Object[] params)
    1.21 -                throws Exception {
    1.22 -                if (DEBUG) {
    1.23 -                        configuration.root.printError(
    1.24 -                                "DEBUG: " + this.getClass().getName() + "." + methodName);
    1.25 -                }
    1.26 -                Method method = this.getClass().getMethod(methodName, paramClasses);
    1.27 -                method.invoke(this, params);
    1.28 -        }
    1.29 -
    1.30 -        /**
    1.31           * Returns a list of enum constants that will be documented for the given class.
    1.32           * This information can be used for doclet specific documentation
    1.33           * generation.
    1.34 @@ -165,21 +148,21 @@
    1.35           * @param elements the XML elements that specify how to construct this
    1.36           *                documentation.
    1.37           */
    1.38 -        public void buildEnumConstant(List<?> elements) {
    1.39 +        public void buildEnumConstant(XMLNode node) {
    1.40                  if (writer == null) {
    1.41                          return;
    1.42                  }
    1.43                  for (currentEnumConstantsIndex = 0;
    1.44                          currentEnumConstantsIndex < enumConstants.size();
    1.45                          currentEnumConstantsIndex++) {
    1.46 -                        build(elements);
    1.47 +                        buildChildren(node);
    1.48                  }
    1.49          }
    1.50  
    1.51          /**
    1.52           * Build the overall header.
    1.53           */
    1.54 -        public void buildHeader() {
    1.55 +        public void buildHeader(XMLNode node) {
    1.56                  writer.writeHeader(
    1.57                          classDoc,
    1.58                          configuration.getText("doclet.Enum_Constant_Detail"));
    1.59 @@ -188,7 +171,7 @@
    1.60          /**
    1.61           * Build the header for the individual enum constants.
    1.62           */
    1.63 -        public void buildEnumConstantHeader() {
    1.64 +        public void buildEnumConstantHeader(XMLNode node) {
    1.65                  writer.writeEnumConstantHeader(
    1.66                          (FieldDoc) enumConstants.get(currentEnumConstantsIndex),
    1.67                          currentEnumConstantsIndex == 0);
    1.68 @@ -197,7 +180,7 @@
    1.69          /**
    1.70           * Build the signature.
    1.71           */
    1.72 -        public void buildSignature() {
    1.73 +        public void buildSignature(XMLNode node) {
    1.74                  writer.writeSignature(
    1.75                          (FieldDoc) enumConstants.get(currentEnumConstantsIndex));
    1.76          }
    1.77 @@ -205,7 +188,7 @@
    1.78          /**
    1.79           * Build the deprecation information.
    1.80           */
    1.81 -        public void buildDeprecationInfo() {
    1.82 +        public void buildDeprecationInfo(XMLNode node) {
    1.83                  writer.writeDeprecated(
    1.84                          (FieldDoc) enumConstants.get(currentEnumConstantsIndex));
    1.85          }
    1.86 @@ -214,7 +197,7 @@
    1.87           * Build the comments for the enum constant.  Do nothing if
    1.88           * {@link Configuration#nocomment} is set to true.
    1.89           */
    1.90 -        public void buildEnumConstantComments() {
    1.91 +        public void buildEnumConstantComments(XMLNode node) {
    1.92                  if (!configuration.nocomment) {
    1.93                          writer.writeComments(
    1.94                                  (FieldDoc) enumConstants.get(currentEnumConstantsIndex));
    1.95 @@ -224,7 +207,7 @@
    1.96          /**
    1.97           * Build the tag information.
    1.98           */
    1.99 -        public void buildTagInfo() {
   1.100 +        public void buildTagInfo(XMLNode node) {
   1.101                  writer.writeTags(
   1.102                          (FieldDoc) enumConstants.get(currentEnumConstantsIndex));
   1.103          }
   1.104 @@ -232,14 +215,14 @@
   1.105          /**
   1.106           * Build the footer for the individual enum constants.
   1.107           */
   1.108 -        public void buildEnumConstantFooter() {
   1.109 +        public void buildEnumConstantFooter(XMLNode node) {
   1.110                  writer.writeEnumConstantFooter();
   1.111          }
   1.112  
   1.113          /**
   1.114           * Build the overall footer.
   1.115           */
   1.116 -        public void buildFooter() {
   1.117 +        public void buildFooter(XMLNode node) {
   1.118                  writer.writeFooter(classDoc);
   1.119          }
   1.120  

mercurial