< prev index next >

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

Print this page

        

*** 121,133 **** Content memberDetailsTree) { memberDetailsTree.add(MarkerComments.START_OF_CONSTRUCTOR_DETAILS); Content constructorDetailsTree = new ContentBuilder(); Content heading = HtmlTree.HEADING(Headings.TypeDeclaration.DETAILS_HEADING, contents.constructorDetailsLabel); constructorDetailsTree.add(links.createAnchor( SectionName.CONSTRUCTOR_DETAIL)); - constructorDetailsTree.add(heading); return constructorDetailsTree; } /** * {@inheritDoc} --- 121,133 ---- Content memberDetailsTree) { memberDetailsTree.add(MarkerComments.START_OF_CONSTRUCTOR_DETAILS); Content constructorDetailsTree = new ContentBuilder(); Content heading = HtmlTree.HEADING(Headings.TypeDeclaration.DETAILS_HEADING, contents.constructorDetailsLabel); + constructorDetailsTree.add(heading); constructorDetailsTree.add(links.createAnchor( SectionName.CONSTRUCTOR_DETAIL)); return constructorDetailsTree; } /** * {@inheritDoc}
*** 136,162 **** public Content getConstructorDocTreeHeader(ExecutableElement constructor, Content constructorDetailsTree) { String erasureAnchor; Content constructorDocTree = new ContentBuilder(); Content heading = new HtmlTree(Headings.TypeDeclaration.MEMBER_HEADING); if ((erasureAnchor = getErasureAnchor(constructor)) != null) { ! heading.add(links.createAnchor((erasureAnchor))); } ! heading.add(links.createAnchor(writer.getAnchor(constructor), new StringContent(name(constructor)))); ! constructorDocTree.add(heading); return HtmlTree.SECTION(HtmlStyle.detail, constructorDocTree); } /** * {@inheritDoc} */ @Override public Content getSignature(ExecutableElement constructor) { ! return new MemberSignature(constructor) ! .addParameters(getParameters(constructor, true)) ! .addExceptions(getExceptions(constructor)) ! .toContent(); } /** * {@inheritDoc} */ --- 136,173 ---- public Content getConstructorDocTreeHeader(ExecutableElement constructor, Content constructorDetailsTree) { String erasureAnchor; Content constructorDocTree = new ContentBuilder(); Content heading = new HtmlTree(Headings.TypeDeclaration.MEMBER_HEADING); + heading.add(name(constructor)); + constructorDocTree.add(heading); if ((erasureAnchor = getErasureAnchor(constructor)) != null) { ! constructorDocTree.add(links.createAnchor((erasureAnchor))); } ! constructorDocTree.add(links.createAnchor(writer.getAnchor(constructor))); return HtmlTree.SECTION(HtmlStyle.detail, constructorDocTree); } /** * {@inheritDoc} */ @Override public Content getSignature(ExecutableElement constructor) { ! Content pre = new HtmlTree(HtmlTag.PRE); ! writer.addAnnotationInfo(constructor, pre); ! int annotationLength = pre.charCount(); ! addModifiers(constructor, pre); ! if (configuration.linksource) { ! Content constructorName = new StringContent(name(constructor)); ! writer.addSrcLink(constructor, constructorName, pre); ! } else { ! addName(name(constructor), pre); ! } ! int indent = pre.charCount() - annotationLength; ! addParameters(constructor, pre, indent); ! addExceptions(constructor, pre, indent); ! return pre; } /** * {@inheritDoc} */
*** 192,203 **** /** * {@inheritDoc} */ @Override ! public Content getConstructorDoc(Content constructorDocTree) { ! return getMemberTree(constructorDocTree); } /** * Let the writer know whether a non public constructor was found. * --- 203,215 ---- /** * {@inheritDoc} */ @Override ! public Content getConstructorDoc(Content constructorDocTree, ! boolean isLastContent) { ! return getMemberTree(constructorDocTree, isLastContent); } /** * Let the writer know whether a non public constructor was found. *
< prev index next >