< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeFieldWriterImpl.java

Print this page

        

*** 29,39 **** --- 29,41 ---- import javax.lang.model.element.ExecutableElement; import javax.lang.model.element.TypeElement; import javax.lang.model.type.TypeMirror; import jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder; + import jdk.javadoc.internal.doclets.formats.html.markup.Entity; import jdk.javadoc.internal.doclets.formats.html.markup.HtmlStyle; + import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTag; import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree; import jdk.javadoc.internal.doclets.formats.html.markup.StringContent; import jdk.javadoc.internal.doclets.formats.html.markup.Table; import jdk.javadoc.internal.doclets.formats.html.markup.TableHeader; import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeFieldWriter;
*** 103,115 **** public Content getAnnotationDetailsTreeHeader(TypeElement typeElement) { Content memberDetailsTree = new ContentBuilder(); if (!writer.printedAnnotationFieldHeading) { Content heading = HtmlTree.HEADING(Headings.TypeDeclaration.DETAILS_HEADING, contents.fieldDetailsLabel); memberDetailsTree.add(links.createAnchor( SectionName.ANNOTATION_TYPE_FIELD_DETAIL)); - memberDetailsTree.add(heading); writer.printedAnnotationFieldHeading = true; } return memberDetailsTree; } --- 105,117 ---- public Content getAnnotationDetailsTreeHeader(TypeElement typeElement) { Content memberDetailsTree = new ContentBuilder(); if (!writer.printedAnnotationFieldHeading) { Content heading = HtmlTree.HEADING(Headings.TypeDeclaration.DETAILS_HEADING, contents.fieldDetailsLabel); + memberDetailsTree.add(heading); memberDetailsTree.add(links.createAnchor( SectionName.ANNOTATION_TYPE_FIELD_DETAIL)); writer.printedAnnotationFieldHeading = true; } return memberDetailsTree; }
*** 118,139 **** */ public Content getAnnotationDocTreeHeader(Element member, Content annotationDetailsTree) { Content annotationDocTree = new ContentBuilder(); Content heading = new HtmlTree(Headings.TypeDeclaration.MEMBER_HEADING); ! heading.add(links.createAnchor(name(member), new StringContent(name(member)))); annotationDocTree.add(heading); return HtmlTree.SECTION(HtmlStyle.detail, annotationDocTree); } /** * {@inheritDoc} */ public Content getSignature(Element member) { ! return new MemberSignature(member) ! .addType(getType(member)) ! .toContent(); } /** * {@inheritDoc} */ --- 120,154 ---- */ public Content getAnnotationDocTreeHeader(Element member, Content annotationDetailsTree) { Content annotationDocTree = new ContentBuilder(); Content heading = new HtmlTree(Headings.TypeDeclaration.MEMBER_HEADING); ! heading.add(name(member)); annotationDocTree.add(heading); + annotationDocTree.add(links.createAnchor(name(member))); return HtmlTree.SECTION(HtmlStyle.detail, annotationDocTree); } /** * {@inheritDoc} */ public Content getSignature(Element member) { ! Content pre = new HtmlTree(HtmlTag.PRE); ! writer.addAnnotationInfo(member, pre); ! addModifiers(member, pre); ! Content link = ! writer.getLink(new LinkInfoImpl(configuration, ! LinkInfoImpl.Kind.MEMBER, getType(member))); ! pre.add(link); ! pre.add(Entity.NO_BREAK_SPACE); ! if (configuration.linksource) { ! Content memberName = new StringContent(name(member)); ! writer.addSrcLink(member, memberName, pre); ! } else { ! addName(name(member), pre); ! } ! return pre; } /** * {@inheritDoc} */
*** 166,177 **** } /** * {@inheritDoc} */ ! public Content getAnnotationDoc(Content annotationDocTree) { ! return getMemberTree(annotationDocTree); } /** * {@inheritDoc} */ --- 181,193 ---- } /** * {@inheritDoc} */ ! public Content getAnnotationDoc(Content annotationDocTree, ! boolean isLastContent) { ! return getMemberTree(annotationDocTree, isLastContent); } /** * {@inheritDoc} */
< prev index next >