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/util/JavaScriptScanner.java
/* * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.javadoc.internal.doclets.toolkit.util; import java.util.List; import java.util.Locale; import java.util.function.Consumer; import com.sun.source.doctree.AttributeTree; import com.sun.source.doctree.DocCommentTree; import com.sun.source.doctree.DocTree; import com.sun.source.doctree.DocTree.Kind; import com.sun.source.doctree.StartElementTree; import com.sun.source.util.DocTreePath; import com.sun.source.util.DocTreePathScanner; import com.sun.source.util.TreePath; import com.sun.tools.javac.util.DefinedBy; import com.sun.tools.javac.util.DefinedBy.Api; /** * A DocTree scanner to detect use of JavaScript in a doc comment tree. */ public class JavaScriptScanner extends DocTreePathScanner<Void, Consumer<DocTreePath>> { public Void scan(DocCommentTree tree, TreePath p, Consumer<DocTreePath> f) { return scan(new DocTreePath(p, tree), f); } @Override @DefinedBy(Api.COMPILER_TREE) public Void visitStartElement(StartElementTree tree, Consumer<DocTreePath> f) { String name = tree.getName().toString(); if (name.equalsIgnoreCase("script")) f.accept(getCurrentPath()); return super.visitStartElement(tree, f); } @Override @DefinedBy(Api.COMPILER_TREE) public Void visitAttribute(AttributeTree tree, Consumer<DocTreePath> f) { String name = tree.getName().toString().toLowerCase(Locale.ENGLISH); switch (name) { // See https://www.w3.org/TR/html-markup/global-attributes.html#common.attrs.event-handler case "onabort": case "onblur": case "oncanplay": case "oncanplaythrough": case "onchange": case "onclick": case "oncontextmenu": case "ondblclick": case "ondrag": case "ondragend": case "ondragenter": case "ondragleave": case "ondragover": case "ondragstart": case "ondrop": case "ondurationchange": case "onemptied": case "onended": case "onerror": case "onfocus": case "oninput": case "oninvalid": case "onkeydown": case "onkeypress": case "onkeyup": case "onload": case "onloadeddata": case "onloadedmetadata": case "onloadstart": case "onmousedown": case "onmousemove": case "onmouseout": case "onmouseover": case "onmouseup": case "onmousewheel": case "onpause": case "onplay": case "onplaying": case "onprogress": case "onratechange": case "onreadystatechange": case "onreset": case "onscroll": case "onseeked": case "onseeking": case "onselect": case "onshow": case "onstalled": case "onsubmit": case "onsuspend": case "ontimeupdate": case "onvolumechange": case "onwaiting": // See https://www.w3.org/TR/html4/sgml/dtd.html // Most of the attributes that take a %Script are also defined as event handlers // in HTML 5. The one exception is onunload. // case "onchange": case "onclick": case "ondblclick": case "onfocus": // case "onkeydown": case "onkeypress": case "onkeyup": case "onload": // case "onmousedown": case "onmousemove": case "onmouseout": case "onmouseover": // case "onmouseup": case "onreset": case "onselect": case "onsubmit": case "onunload": f.accept(getCurrentPath()); break; // See https://www.w3.org/TR/html4/sgml/dtd.html // https://www.w3.org/TR/html5/ // These are all the attributes that take a %URI or a valid URL potentially surrounded // by spaces case "action": case "cite": case "classid": case "codebase": case "data": case "datasrc": case "for": case "href": case "longdesc": case "profile": case "src": case "usemap": List<? extends DocTree> value = tree.getValue(); if (value != null && !value.isEmpty() && value.get(0).getKind() == Kind.TEXT) { String v = value.get(0).toString().trim().toLowerCase(Locale.ENGLISH); if (v.startsWith("javascript:")) { f.accept(getCurrentPath()); } } break; } return super.visitAttribute(tree, f); } /** * Used to indicate a fault when parsing, typically used in * lambda methods. */ public static class Fault extends RuntimeException { private static final long serialVersionUID = 0L; } }
⏎ jdk/javadoc/internal/doclets/toolkit/util/JavaScriptScanner.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, 63377👍, 0💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
How to perform XML Schema validation with sax\Writer.java provided in the Apache Xerces package? You...
maven-model-builder-3.8. 6.jaris the JAR file for Apache Maven 3.8.6 Model Builder module. Apache Ma...
How to download and install mysql-connector-j-8.0.31 .zip?Connector/J Java library is a JDBC Driver ...
pache Derby is an open source relational database implemented entirely in Java and available under t...