1.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java Fri Jun 18 16:45:13 2010 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java Fri Jun 18 21:13:56 2010 -0700 1.3 @@ -30,7 +30,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 required annotation type members. 1.11 @@ -114,20 +113,6 @@ 1.12 } 1.13 1.14 /** 1.15 - * {@inheritDoc} 1.16 - */ 1.17 - public void invokeMethod(String methodName, Class<?>[] paramClasses, 1.18 - Object[] params) 1.19 - throws Exception { 1.20 - if (DEBUG) { 1.21 - configuration.root.printError("DEBUG: " + this.getClass().getName() 1.22 - + "." + methodName); 1.23 - } 1.24 - Method method = this.getClass().getMethod(methodName, paramClasses); 1.25 - method.invoke(this, params); 1.26 - } 1.27 - 1.28 - /** 1.29 * Returns a list of members that will be documented for the given class. 1.30 * This information can be used for doclet specific documentation 1.31 * generation. 1.32 @@ -161,20 +146,20 @@ 1.33 * @param elements the XML elements that specify how to construct this 1.34 * documentation. 1.35 */ 1.36 - public void buildAnnotationTypeRequiredMember(List<?> elements) { 1.37 + public void buildAnnotationTypeRequiredMember(XMLNode node) { 1.38 if (writer == null) { 1.39 return; 1.40 } 1.41 for (currentMemberIndex = 0; currentMemberIndex < members.size(); 1.42 currentMemberIndex++) { 1.43 - build(elements); 1.44 + buildChildren(node); 1.45 } 1.46 } 1.47 1.48 /** 1.49 * Build the overall header. 1.50 */ 1.51 - public void buildHeader() { 1.52 + public void buildHeader(XMLNode node) { 1.53 writer.writeHeader(classDoc, 1.54 configuration.getText("doclet.Annotation_Type_Member_Detail")); 1.55 } 1.56 @@ -182,7 +167,7 @@ 1.57 /** 1.58 * Build the header for the individual members. 1.59 */ 1.60 - public void buildMemberHeader() { 1.61 + public void buildMemberHeader(XMLNode node) { 1.62 writer.writeMemberHeader((MemberDoc) members.get( 1.63 currentMemberIndex), 1.64 currentMemberIndex == 0); 1.65 @@ -191,14 +176,14 @@ 1.66 /** 1.67 * Build the signature. 1.68 */ 1.69 - public void buildSignature() { 1.70 + public void buildSignature(XMLNode node) { 1.71 writer.writeSignature((MemberDoc) members.get(currentMemberIndex)); 1.72 } 1.73 1.74 /** 1.75 * Build the deprecation information. 1.76 */ 1.77 - public void buildDeprecationInfo() { 1.78 + public void buildDeprecationInfo(XMLNode node) { 1.79 writer.writeDeprecated((MemberDoc) members.get(currentMemberIndex)); 1.80 } 1.81 1.82 @@ -206,7 +191,7 @@ 1.83 * Build the comments for the member. Do nothing if 1.84 * {@link Configuration#nocomment} is set to true. 1.85 */ 1.86 - public void buildMemberComments() { 1.87 + public void buildMemberComments(XMLNode node) { 1.88 if(! configuration.nocomment){ 1.89 writer.writeComments((MemberDoc) members.get(currentMemberIndex)); 1.90 } 1.91 @@ -215,21 +200,21 @@ 1.92 /** 1.93 * Build the tag information. 1.94 */ 1.95 - public void buildTagInfo() { 1.96 + public void buildTagInfo(XMLNode node) { 1.97 writer.writeTags((MemberDoc) members.get(currentMemberIndex)); 1.98 } 1.99 1.100 /** 1.101 * Build the footer for the individual member. 1.102 */ 1.103 - public void buildMemberFooter() { 1.104 + public void buildMemberFooter(XMLNode node) { 1.105 writer.writeMemberFooter(); 1.106 } 1.107 1.108 /** 1.109 * Build the overall footer. 1.110 */ 1.111 - public void buildFooter() { 1.112 + public void buildFooter(XMLNode node) { 1.113 writer.writeFooter(classDoc); 1.114 } 1.115