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/ValueTaglet.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.EnumSet; import javax.lang.model.element.Element; import javax.lang.model.element.VariableElement; import com.sun.source.doctree.DocTree; import jdk.javadoc.doclet.Taglet.Location; import jdk.javadoc.internal.doclets.toolkit.BaseConfiguration; 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.Utils; /** * An inline Taglet representing the value tag. This tag should only be used with * constant fields that have a value. It is used to access the value of constant * fields. This inline tag has an optional field name parameter. If the name is * specified, the constant value is retrieved from the specified field. A link * is also created to the specified field. If a name is not specified, the value * is retrieved for the field that the inline tag appears on. The name is specified * in the following format: [fully qualified class name]#[constant field name]. * * <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 ValueTaglet extends BaseTaglet { /** * Construct a new ValueTaglet. */ public ValueTaglet() { super(DocTree.Kind.VALUE, true, EnumSet.allOf(Location.class)); } /** * Returns the referenced field or a null if the value tag * is empty or the reference is invalid. * * @param holder the tag holder. * @param config the configuration of the doclet. * @param tag the value tag. * * @return the referenced field or null. */ private VariableElement getVariableElement(Element holder, BaseConfiguration config, DocTree tag) { CommentHelper ch = config.utils.getCommentHelper(holder); String signature = ch.getReferencedSignature(tag); Element e = signature == null ? holder : ch.getReferencedMember(tag); return (e != null && config.utils.isVariableElement(e)) ? (VariableElement) e : null; } @Override public Content getInlineTagOutput(Element holder, DocTree tag, TagletWriter writer) { BaseConfiguration configuration = writer.configuration(); Utils utils = configuration.utils; Messages messages = configuration.getMessages(); VariableElement field = getVariableElement(holder, configuration, tag); if (field == null) { if (tag.toString().isEmpty()) { //Invalid use of @value messages.warning(holder, "doclet.value_tag_invalid_use"); } else { //Reference is unknown. messages.warning(holder, "doclet.value_tag_invalid_reference", tag.toString()); } } else if (field.getConstantValue() != null) { return writer.valueTagOutput(field, utils.constantValueExpression(field), // TODO: investigate and cleanup // in the j.l.m world, equals will not be accurate // !field.equals(tag.holder()) !utils.elementsEqual(field, holder) ); } else { //Referenced field is not a constant. messages.warning(holder, "doclet.value_tag_invalid_constant", utils.getSimpleName(field)); } return writer.getOutputInstance(); } }
⏎ jdk/javadoc/internal/doclets/toolkit/taglets/ValueTaglet.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, 6970👍, 0💬
Popular Posts:
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module. JDK 17 Hotspot Agent...
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
What Is poi-contrib-3.5.jar? poi-contrib-3.5.jar is one of the JAR files for Apache POI 3.5, which p...