< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java

Print this page




 127     protected void buildAnnotationTypeRequiredMember(Content memberDetailsTree)
 128             throws DocletException {
 129         buildAnnotationTypeMember(memberDetailsTree);
 130     }
 131 
 132     /**
 133      * Build the member documentation.
 134      *
 135      * @param memberDetailsTree the content tree to which the documentation will be added
 136      * @throws DocletException if an error occurs
 137      */
 138     protected void buildAnnotationTypeMember(Content memberDetailsTree)
 139             throws DocletException {
 140         if (writer == null) {
 141             return;
 142         }
 143         if (hasMembersToDocument()) {
 144             writer.addAnnotationDetailsMarker(memberDetailsTree);
 145             Content annotationDetailsTreeHeader = writer.getAnnotationDetailsTreeHeader(typeElement);
 146             Content detailsTree = writer.getMemberTreeHeader();
 147 
 148             for (Element member : members) {
 149                 currentMember = member;
 150                 Content annotationDocTree = writer.getAnnotationDocTreeHeader(
 151                         currentMember, detailsTree);
 152 
 153                 buildAnnotationTypeMemberChildren(annotationDocTree);
 154 
 155                 detailsTree.add(writer.getAnnotationDoc(annotationDocTree));

 156             }
 157             memberDetailsTree.add(writer.getAnnotationDetails(annotationDetailsTreeHeader, detailsTree));
 158         }
 159     }
 160 
 161     protected void buildAnnotationTypeMemberChildren(Content annotationDocTree) {
 162         buildSignature(annotationDocTree);
 163         buildDeprecationInfo(annotationDocTree);
 164         buildMemberComments(annotationDocTree);
 165         buildTagInfo(annotationDocTree);
 166     }
 167 
 168     /**
 169      * Build the signature.
 170      *
 171      * @param annotationDocTree the content tree to which the documentation will be added
 172      */
 173     protected void buildSignature(Content annotationDocTree) {
 174         annotationDocTree.add(writer.getSignature(currentMember));
 175     }




 127     protected void buildAnnotationTypeRequiredMember(Content memberDetailsTree)
 128             throws DocletException {
 129         buildAnnotationTypeMember(memberDetailsTree);
 130     }
 131 
 132     /**
 133      * Build the member documentation.
 134      *
 135      * @param memberDetailsTree the content tree to which the documentation will be added
 136      * @throws DocletException if an error occurs
 137      */
 138     protected void buildAnnotationTypeMember(Content memberDetailsTree)
 139             throws DocletException {
 140         if (writer == null) {
 141             return;
 142         }
 143         if (hasMembersToDocument()) {
 144             writer.addAnnotationDetailsMarker(memberDetailsTree);
 145             Content annotationDetailsTreeHeader = writer.getAnnotationDetailsTreeHeader(typeElement);
 146             Content detailsTree = writer.getMemberTreeHeader();
 147             Element lastMember = members.get((members.size() - 1));
 148             for (Element member : members) {
 149                 currentMember = member;
 150                 Content annotationDocTree = writer.getAnnotationDocTreeHeader(
 151                         currentMember, detailsTree);
 152 
 153                 buildAnnotationTypeMemberChildren(annotationDocTree);
 154 
 155                 detailsTree.add(writer.getAnnotationDoc(
 156                         annotationDocTree, currentMember == lastMember));
 157             }
 158             memberDetailsTree.add(writer.getAnnotationDetails(annotationDetailsTreeHeader, detailsTree));
 159         }
 160     }
 161 
 162     protected void buildAnnotationTypeMemberChildren(Content annotationDocTree) {
 163         buildSignature(annotationDocTree);
 164         buildDeprecationInfo(annotationDocTree);
 165         buildMemberComments(annotationDocTree);
 166         buildTagInfo(annotationDocTree);
 167     }
 168 
 169     /**
 170      * Build the signature.
 171      *
 172      * @param annotationDocTree the content tree to which the documentation will be added
 173      */
 174     protected void buildSignature(Content annotationDocTree) {
 175         annotationDocTree.add(writer.getSignature(currentMember));
 176     }


< prev index next >