Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 jdk.javadoc.jmod - Java Document Tool
JDK 17 jdk.javadoc.jmod is the JMOD file for JDK 17 Java Document tool, which can be invoked by the "javadoc" command.
JDK 17 Java Document tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.javadoc.jmod.
JDK 17 Java Document tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Java Document tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.javadoc.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/javadoc/internal/doclets/formats/html/HtmlSerialFieldWriter.java
/* * Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.javadoc.internal.doclets.formats.html; import java.util.*; import javax.lang.model.element.TypeElement; import javax.lang.model.element.VariableElement; import javax.lang.model.type.TypeMirror; import com.sun.source.doctree.DocTree; import com.sun.source.doctree.SerialTree; import jdk.javadoc.internal.doclets.formats.html.markup.HtmlStyle; import jdk.javadoc.internal.doclets.formats.html.markup.TagName; import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree; import jdk.javadoc.internal.doclets.formats.html.markup.RawHtml; import jdk.javadoc.internal.doclets.formats.html.markup.Text; import jdk.javadoc.internal.doclets.toolkit.Content; import jdk.javadoc.internal.doclets.toolkit.SerializedFormWriter; import jdk.javadoc.internal.doclets.toolkit.util.CommentHelper; /** * Generate serialized form for serializable fields. * Documentation denoted by the tags <code>serial</code> and * <code>serialField</code> is processed. * * <p><b>This is NOT part of any supported API. * If you write code that depends on this, you do so at your own risk. * This code and its internal interfaces are subject to change or * deletion without notice.</b> */ public class HtmlSerialFieldWriter extends FieldWriterImpl implements SerializedFormWriter.SerialFieldWriter { public HtmlSerialFieldWriter(SubWriterHolderWriter writer, TypeElement typeElement) { super(writer, typeElement); } public SortedSet<VariableElement> members(TypeElement te) { return utils.serializableFields(te); } /** * Return the header for serializable fields section. * * @return a content tree for the header */ @Override public Content getSerializableFieldsHeader() { HtmlTree ul = new HtmlTree(TagName.UL); ul.setStyle(HtmlStyle.blockList); return ul; } /** * Return the header for serializable fields content section. * * @param isLastContent true if the content being documented is the last content. * @return a content tree for the header */ @Override public Content getFieldsContentHeader(boolean isLastContent) { HtmlTree li = new HtmlTree(TagName.LI); li.setStyle(HtmlStyle.blockList); return li; } /** * Add serializable fields. * * @param heading the heading for the section * @param serializableFieldsTree the tree to be added to the serializable fields * content tree * @return a content tree for the serializable fields content */ @Override public Content getSerializableFields(String heading, Content serializableFieldsTree) { HtmlTree section = HtmlTree.SECTION(HtmlStyle.detail); if (serializableFieldsTree.isValid()) { Content headingContent = Text.of(heading); Content serialHeading = HtmlTree.HEADING(Headings.SerializedForm.CLASS_SUBHEADING, headingContent); section.add(serialHeading); section.add(serializableFieldsTree); } return HtmlTree.LI(section); } @Override public void addMemberHeader(TypeMirror fieldType, String fieldName, Content contentTree) { Content nameContent = Text.of(fieldName); Content heading = HtmlTree.HEADING(Headings.SerializedForm.MEMBER_HEADING, nameContent); contentTree.add(heading); Content pre = new HtmlTree(TagName.PRE); Content fieldContent = writer.getLink(new HtmlLinkInfo( configuration, HtmlLinkInfo.Kind.SERIAL_MEMBER, fieldType)); pre.add(fieldContent); pre.add(" "); pre.add(fieldName); contentTree.add(pre); } /** * Add the deprecated information for this member. * * @param field the field to document. * @param contentTree the tree to which the deprecated info will be added */ @Override public void addMemberDeprecatedInfo(VariableElement field, Content contentTree) { addDeprecatedInfo(field, contentTree); } /** * Add the description text for this member. * * @param field the field to document. * @param contentTree the tree to which the deprecated info will be added */ @Override public void addMemberDescription(VariableElement field, Content contentTree) { if (!utils.getFullBody(field).isEmpty()) { writer.addInlineComment(field, contentTree); } List<? extends SerialTree> tags = utils.getSerialTrees(field); if (!tags.isEmpty() && !tags.get(0).getDescription().isEmpty()) { writer.addInlineComment(field, tags.get(0), contentTree); } } /** * Add the description text for this member represented by the tag. * * @param serialFieldTag the field to document (represented by tag) * @param contentTree the tree to which the deprecated info will be added */ @Override public void addMemberDescription(VariableElement field, DocTree serialFieldTag, Content contentTree) { CommentHelper ch = utils.getCommentHelper(field); List<? extends DocTree> description = ch.getDescription(serialFieldTag); if (!description.isEmpty()) { Content serialFieldContent = new RawHtml(ch.getText(description)); Content div = HtmlTree.DIV(HtmlStyle.block, serialFieldContent); contentTree.add(div); } } /** * Add the tag information for this member. * * @param field the field to document. * @param contentTree the tree to which the member tags info will be added */ @Override public void addMemberTags(VariableElement field, Content contentTree) { Content tagContent = writer.getBlockTagOutput(field); if (!tagContent.isEmpty()) { HtmlTree dl = HtmlTree.DL(HtmlStyle.notes); dl.add(tagContent); contentTree.add(dl); } } /** * Check to see if overview details should be printed. If * nocomment option set or if there is no text to be printed * for deprecation info, comment or tags, do not print overview details. * * @param field the field to check overview details for. * @return true if overview details need to be printed */ @Override public boolean shouldPrintOverview(VariableElement field) { if (!options.noComment()) { if(!utils.getFullBody(field).isEmpty() || writer.hasSerializationOverviewTags(field)) return true; } if (utils.isDeprecated(field)) return true; return false; } }
⏎ jdk/javadoc/internal/doclets/formats/html/HtmlSerialFieldWriter.java
Or download all of them as a single archive file:
File name: jdk.javadoc-17.0.5-src.zip File size: 587730 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jcmd.jmod - JCmd Tool
2023-08-17, 6916👍, 0💬
Popular Posts:
commons-collections4-4.2 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format su...
Saxon is an open source product available under the Mozilla Public License. It provides implementati...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...