55 |
55 |
56 /** |
56 /** |
57 * The doclet specific writer. |
57 * The doclet specific writer. |
58 */ |
58 */ |
59 private final AnnotationTypeWriter writer; |
59 private final AnnotationTypeWriter writer; |
60 |
|
61 /** |
|
62 * The content tree for the annotation documentation. |
|
63 */ |
|
64 private Content contentTree; |
|
65 |
60 |
66 /** |
61 /** |
67 * Construct a new ClassBuilder. |
62 * Construct a new ClassBuilder. |
68 * |
63 * |
69 * @param context the build context. |
64 * @param context the build context. |
95 /** |
90 /** |
96 * {@inheritDoc} |
91 * {@inheritDoc} |
97 */ |
92 */ |
98 @Override |
93 @Override |
99 public void build() throws DocletException { |
94 public void build() throws DocletException { |
100 buildAnnotationTypeDoc(contentTree); |
95 buildAnnotationTypeDoc(); |
101 } |
96 } |
102 |
97 |
103 /** |
98 /** |
104 * Build the annotation type documentation. |
99 * Build the annotation type documentation. |
105 * |
100 * |
106 * @param contentTree the content tree to which the documentation will be added |
101 * @throws DocletException if there is a problem building the documentation |
107 * @throws DocletException if there is a problem building the documentation |
102 */ |
108 */ |
103 protected void buildAnnotationTypeDoc() throws DocletException { |
109 protected void buildAnnotationTypeDoc(Content contentTree) throws DocletException { |
104 Content contentTree = writer.getHeader(resources.getText("doclet.AnnotationType") + |
110 contentTree = writer.getHeader(resources.getText("doclet.AnnotationType") + |
|
111 " " + utils.getSimpleName(annotationType)); |
105 " " + utils.getSimpleName(annotationType)); |
112 Content annotationContentTree = writer.getAnnotationContentHeader(); |
106 Content annotationContentTree = writer.getAnnotationContentHeader(); |
113 |
107 |
114 buildAnnotationTypeInfo(annotationContentTree); |
108 buildAnnotationTypeInfo(annotationContentTree); |
115 buildMemberSummary(annotationContentTree); |
109 buildMemberSummary(annotationContentTree); |
116 buildAnnotationTypeMemberDetails(annotationContentTree); |
110 buildAnnotationTypeMemberDetails(annotationContentTree); |
117 |
111 |
118 writer.addAnnotationContentTree(contentTree, annotationContentTree); |
112 writer.addAnnotationContentTree(annotationContentTree); |
119 writer.addFooter(contentTree); |
113 writer.addFooter(); |
120 writer.printDocument(contentTree); |
114 writer.printDocument(contentTree); |
121 copyDocFiles(); |
115 copyDocFiles(); |
122 } |
116 } |
123 |
117 |
124 /** |
118 /** |