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/Messages.java
/* * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.javadoc.internal.doclets.toolkit; import javax.lang.model.element.Element; import javax.tools.Diagnostic; import javax.tools.FileObject; import com.sun.source.util.DocTreePath; import jdk.javadoc.doclet.Reporter; import static javax.tools.Diagnostic.Kind.*; /** * Provides standardized access to the diagnostic reporting facilities * for a doclet. * * Messages are specified by resource keys to be found in the doclet's * {@link Resources resources}. Values can be substituted into the * strings obtained from the resource files. * * Messages are reported to the doclet's {@link Reporter reporter}. */ public class Messages { private final BaseConfiguration configuration; private final Resources resources; private final Reporter reporter; /** * Creates a {@code Messages} object to provide standardized access to * the doclet's diagnostic reporting mechanisms. * * @param configuration the doclet's configuration, used to access the doclet's * reporter, and additional methods and state used to * filter out messages, if any, which should be suppressed. * @param resources resources for console messages and exceptions */ public Messages(BaseConfiguration configuration, Resources resources) { this.configuration = configuration; this.resources = resources; reporter = configuration.getReporter(); } /** * Returns the resources being used when generating messages. * * @return the resources */ public Resources getResources() { return resources; } // ***** Errors ***** /** * Reports an error message to the doclet's reporter. * * @param key the name of a resource containing the message to be printed * @param args optional arguments to be replaced in the message */ public void error(String key, Object... args) { report(ERROR, resources.getText(key, args)); } /** * Reports an error message to the doclet's reporter. * * @param path a path identifying the position to be included with the message * @param key the name of a resource containing the message to be printed * @param args optional arguments to be replaced in the message */ public void error(DocTreePath path, String key, Object... args) { report(ERROR, path, resources.getText(key, args)); } /** * Reports an error message to the doclet's reporter. * * @param fo the file object to be associated with the message * @param start the start of a range of characters to be associated with the message * @param pos the position to be associated with the message * @param end the end of a range of characters to be associated with the message * @param key the name of a resource containing the message to be printed * @param args optional arguments to be replaced in the message */ public void error(FileObject fo, int start, int pos, int end, String key, Object... args) { report(ERROR, fo, start, pos, end, resources.getText(key, args)); } // ***** Warnings ***** /** * Reports a warning message to the doclet's reporter. * * @param key the name of a resource containing the message to be printed * @param args optional arguments to be replaced in the message */ public void warning(String key, Object... args) { report(WARNING, resources.getText(key, args)); } /** * Reports a warning message to the doclet's reporter. * * @param path a path identifying the position to be included with the message * @param key the name of a resource containing the message to be printed * @param args optional arguments to be replaced in the message */ public void warning(DocTreePath path, String key, Object... args) { if (configuration.showMessage(path, key)) { report(WARNING, path, resources.getText(key, args)); } } /** * Reports a warning message to the doclet's reporter. * * @param e an element identifying the position to be included with the message * @param key the name of a resource containing the message to be printed * @param args optional arguments to be replaced in the message */ public void warning(Element e, String key, Object... args) { if (configuration.showMessage(e, key)) { report(WARNING, e, resources.getText(key, args)); } } /** * Reports a warning message to the doclet's reporter. * * @param fo the file object to be associated with the message * @param start the start of a range of characters to be associated with the message * @param pos the position to be associated with the message * @param end the end of a range of characters to be associated with the message * @param key the name of a resource containing the message to be printed * @param args optional arguments to be replaced in the message */ public void warning(FileObject fo, int start, int pos, int end, String key, Object... args) { report(WARNING, fo, start, pos, end, resources.getText(key, args)); } // ***** Notices ***** /** * Reports an informational notice to the doclet's reporter. * The message is written directly to the reporter's diagnostic stream. * * @param key the name of a resource containing the message to be printed * @param args optional arguments to be replaced in the message */ public void notice(String key, Object... args) { if (!configuration.getOptions().quiet()) { // Note: we do not use report(NOTE, ...) which would prefix the output with "Note:" reporter.getDiagnosticWriter().println(resources.getText(key, args)); } } // ***** Internal support ***** private void report(Diagnostic.Kind k, String msg) { reporter.print(k, msg); } private void report(Diagnostic.Kind k, DocTreePath p, String msg) { reporter.print(k, p, msg); } private void report(Diagnostic.Kind k, Element e, String msg) { reporter.print(k, e, msg); } private void report(Diagnostic.Kind k, FileObject fo, int start, int pos, int end, String msg) { reporter.print(k, fo, start, pos, end, msg); } }
⏎ jdk/javadoc/internal/doclets/toolkit/Messages.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, 6994👍, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 8? If you want to write Java applications, yo...
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
XOM™ is a new XML object model. It is an open source (LGPL), tree-based API for processing XML with ...
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...