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/PackagesHelper.java
/* * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.nashorn.tools.jjs; import java.lang.reflect.Modifier; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import jdk.nashorn.internal.runtime.Context; /** * Abstract helper class to compute properties of a Java package object. Properties of * package object are (simple) top level class names in that java package and * immediate subpackages of that package. */ abstract class PackagesHelper { private final Context context; /** * Construct a new PackagesHelper. * * @param context the current Nashorn Context */ PackagesHelper(final Context context) throws IOException { this.context = context; } static PackagesHelper create(final Context context) throws IOException { return isJavacHelperAvailable()? new JavacPackagesHelper(context) : new JrtPackagesHelper(context); } // LRU cache for java package properties lists private final LinkedHashMap<String, List<String>> propsCache = new LinkedHashMap<String, List<String>>(32, 0.75f, true) { private static final int CACHE_SIZE = 100; private static final long serialVersionUID = 1; @Override protected boolean removeEldestEntry(final Map.Entry<String, List<String>> eldest) { return size() > CACHE_SIZE; } }; /** * Return the list of properties of the given Java package or package prefix * * @param pkg Java package name or package prefix name * @return the list of properties of the given Java package or package prefix */ final List<String> getPackageProperties(final String pkg) { // check the cache first if (propsCache.containsKey(pkg)) { return propsCache.get(pkg); } try { // make sorted list of properties final List<String> props = new ArrayList<>(listPackage(pkg)); Collections.sort(props); propsCache.put(pkg, props); return props; } catch (final IOException exp) { if (Main.DEBUG) { exp.printStackTrace(); } return Collections.<String>emptyList(); } } /** * Close resources (like file system) used, if any. */ abstract void close() throws IOException; /** * Return the set of properties of a given package object. * * @param pkg package start string * @return set of properties of the given Java package */ abstract Set<String> listPackage(final String pkg) throws IOException; final boolean isClassAccessible(final String className) { try { final Class<?> clz = context.findClass(className); return Modifier.isPublic(clz.getModifiers()); } catch (final ClassNotFoundException cnfe) { } return false; } final boolean isPackageAccessible(final String pkgName) { try { Context.checkPackageAccess(pkgName); return true; } catch (final SecurityException se) { return false; } } private static boolean isJavacHelperAvailable() { try { boolean result = JavacPackagesHelper.isAvailable(); if (Main.DEBUG && !result) { System.err.println("javac packages helper is not available"); } return result; } catch (final LinkageError err) { if (Main.DEBUG) { System.err.println("javac packages helper is not available"); err.printStackTrace(); } return false; } } }
⏎ jdk/nashorn/tools/jjs/PackagesHelper.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, 5944👍, 0💬
Popular Posts:
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
What Is javamail-1_2.zip? javamail-1_2.zip is the binary package of JavaMail API 1.2 in ZIP format. ...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...