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 11 jdk.javadoc.jmod - Java Document Tool
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the "javadoc" command.
JDK 11 Java Document tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.javadoc.jmod.
JDK 11 Java Document tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Java Document tool source code files are stored in \fyicenter\jdk-11.0.1\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, 2018, 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.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; import static com.sun.source.doctree.DocTree.Kind.VALUE; /** * 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 specifed * 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> * * @author Jamie Ho */ public class ValueTaglet extends BaseTaglet { /** * Construct a new ValueTaglet. */ public ValueTaglet() { super(VALUE.tagName, true, EnumSet.of(Site.OVERVIEW, Site.PACKAGE, Site.TYPE, Site.CONSTRUCTOR, Site.METHOD, Site.FIELD)); // not Site.MODULE at this time! } /** * 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(config, tag); return (e != null && config.utils.isVariableElement(e)) ? (VariableElement) e : null; } @Override public Content getTagletOutput(Element holder, DocTree tag, TagletWriter writer) { Utils utils = writer.configuration().utils; Messages messages = writer.configuration().getMessages(); VariableElement field = getVariableElement(holder, writer.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.constantValueExpresion(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-11.0.1-src.zip File size: 680806 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jcmd.jmod - JCmd Tool
2020-07-22, 63876👍, 0💬
Popular Posts:
How to perform XML Schema validation with sax\Writer.java provided in the Apache Xerces package? You...
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but c...
ZooKeeper is a centralized service for maintaining configuration information, naming, providing dist...
commons-lang-2.6.jar is the JAR file for Apache Commons Lang 2.6, which provides a host of helper ut...
JDK 11 java.compiler.jmod is the JMOD file for JDK 11 Compiler module. JDK 11 Compiler module compil...