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.scripting.nashorn.shell.jmod - Scripting Nashorn Shell Module
JDK 11 jdk.scripting.nashorn.shell.jmod is the JMOD file for JDK 11 Scripting Nashorn Shell module.
JDK 11 Scripting Nashorn Shell module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.scripting.nashorn.shell.jmod.
JDK 11 Scripting Nashorn Shell module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Scripting Nashorn Shell module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.scripting.nashorn.shell.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/nashorn/tools/jjs/JrtPackagesHelper.java
/* * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.nashorn.tools.jjs; import java.io.IOException; import java.net.URI; import java.nio.file.DirectoryStream; import java.nio.file.Files; import java.nio.file.FileSystem; import java.nio.file.FileSystems; import java.nio.file.Path; import java.util.HashSet; import java.util.Set; import jdk.nashorn.internal.runtime.Context; /** * A java packages helper that uses jrt file system. */ final class JrtPackagesHelper extends PackagesHelper { private final FileSystem jrtfs; /** * Construct a new JrtPackagesHelper. * * @param context the current Nashorn Context */ JrtPackagesHelper(final Context context) throws IOException { super(context); jrtfs = FileSystems.getFileSystem(URI.create("jrt:/")); } @Override void close() throws IOException { } @Override Set<String> listPackage(final String pkg) throws IOException { final Set<String> props = new HashSet<>(); // look for the /packages/<package_name> directory Path pkgDir = jrtfs.getPath("/packages/" + pkg); if (Files.exists(pkgDir)) { String pkgSlashName = pkg.replace('.', '/'); try (DirectoryStream<Path> ds = Files.newDirectoryStream(pkgDir)) { // it has module links under which this package occurs for (Path mod : ds) { // get the package directory under /modules Path pkgUnderMod = jrtfs.getPath(mod.toString() + "/" + pkgSlashName); try (DirectoryStream<Path> ds2 = Files.newDirectoryStream(pkgUnderMod)) { for (Path p : ds2) { String str = p.getFileName().toString(); // get rid of ".class", if any if (str.endsWith(".class")) { final String clsName = str.substring(0, str.length() - ".class".length()); if (clsName.indexOf('$') == -1 && isClassAccessible(pkg + "." + clsName)) { props.add(str); } } else if (isPackageAccessible(pkg + "." + str)) { props.add(str); } } } } } } return props; } }
⏎ jdk/nashorn/tools/jjs/JrtPackagesHelper.java
Or download all of them as a single archive file:
File name: jdk.scripting.nashorn.shell-11.0.1-src.zip File size: 22002 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.sctp.jmod - SCTP Module
⇐ JDK 11 jdk.scripting.nashorn.jmod - Scripting Nashorn Module
2019-12-02, 5426👍, 0💬
Popular Posts:
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
Oracle Business Intelligence (BI) Beans enables developers to productively build business intelligen...
How to download and install Apache XMLBeans Source Package? The source package contains Java source ...