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/toolkit/taglets/ReturnTaglet.java
/* * Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.javadoc.internal.doclets.toolkit.taglets; import java.util.ArrayList; import java.util.EnumSet; import java.util.List; import javax.lang.model.element.Element; import javax.lang.model.element.ExecutableElement; import javax.lang.model.type.TypeMirror; import com.sun.source.doctree.DocTree; import com.sun.source.doctree.ReturnTree; import jdk.javadoc.doclet.Taglet.Location; import jdk.javadoc.internal.doclets.toolkit.Content; import jdk.javadoc.internal.doclets.toolkit.Messages; import jdk.javadoc.internal.doclets.toolkit.util.CommentHelper; import jdk.javadoc.internal.doclets.toolkit.util.DocFinder; import jdk.javadoc.internal.doclets.toolkit.util.DocFinder.Input; import jdk.javadoc.internal.doclets.toolkit.util.Utils; /** * A taglet that represents the {@code @return} and {@code {@return }} tags. * * <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 ReturnTaglet extends BaseTaglet implements InheritableTaglet { public ReturnTaglet() { super(DocTree.Kind.RETURN, true, EnumSet.of(Location.METHOD)); } @Override public boolean isBlockTag() { return true; } @Override public void inherit(DocFinder.Input input, DocFinder.Output output) { Utils utils = input.utils; CommentHelper ch = utils.getCommentHelper(input.element); ReturnTree tag = null; List<? extends ReturnTree> tags = utils.getReturnTrees(input.element); if (!tags.isEmpty()) { tag = tags.get(0); } else { List<? extends DocTree> firstSentence = utils.getFirstSentenceTrees(input.element); if (firstSentence.size() == 1 && firstSentence.get(0).getKind() == DocTree.Kind.RETURN) { tag = (ReturnTree) firstSentence.get(0); } } if (tag != null) { output.holder = input.element; output.holderTag = tag; output.inlineTags = input.isFirstSentence ? ch.getFirstSentenceTrees(output.holderTag) : ch.getDescription(output.holderTag); } } @Override public Content getInlineTagOutput(Element element, DocTree tag, TagletWriter writer) { return writer.returnTagOutput(element, (ReturnTree) tag, true); } @Override public Content getAllBlockTagOutput(Element holder, TagletWriter writer) { Messages messages = writer.configuration().getMessages(); Utils utils = writer.configuration().utils; List<? extends ReturnTree> tags = utils.getReturnTrees(holder); // Make sure we are not using @return tag on method with void return type. TypeMirror returnType = utils.getReturnType(writer.getCurrentPageElement(), (ExecutableElement)holder); if (returnType != null && utils.isVoid(returnType)) { if (!tags.isEmpty()) { messages.warning(holder, "doclet.Return_tag_on_void_method"); } return null; } if (!tags.isEmpty()) { return writer.returnTagOutput(holder, tags.get(0), false); } // Check for inline tag in first sentence. List<? extends DocTree> firstSentence = utils.getFirstSentenceTrees(holder); if (firstSentence.size() == 1 && firstSentence.get(0).getKind() == DocTree.Kind.RETURN) { return writer.returnTagOutput(holder, (ReturnTree) firstSentence.get(0), false); } // Inherit @return tag if necessary. Input input = new DocFinder.Input(utils, holder, this); DocFinder.Output inheritedDoc = DocFinder.search(writer.configuration(), input); if (inheritedDoc.holderTag != null) { return writer.returnTagOutput(inheritedDoc.holder, (ReturnTree) inheritedDoc.holderTag, false); } return null; } }
⏎ jdk/javadoc/internal/doclets/toolkit/taglets/ReturnTaglet.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, 7003👍, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 5? If you want to write Java applications, yo...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
What Is commons-collections4-4.4 .jar?commons-collections4-4.4 .jaris the JAR file for Apache Common...
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...