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.jdeps.jmod - JDeps Tool
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" command.
JDK 11 JDeps tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jdeps.jmod.
JDK 11 JDeps tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JDeps tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jdeps.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/jdeps/ModuleExportsAnalyzer.java
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.tools.jdeps; import java.io.IOException; import java.io.PrintWriter; import java.lang.module.ModuleDescriptor; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.TreeSet; import java.util.stream.Collectors; import java.util.stream.Stream; /** * Analyze module dependences and any reference to JDK internal APIs. * It can apply transition reduction on the resulting module graph. * * The result prints one line per module it depends on * one line per JDK internal API package it references: * $MODULE[/$PACKAGE] * */ public class ModuleExportsAnalyzer extends DepsAnalyzer { // source archive to its dependences and JDK internal APIs it references private final Map<Archive, Map<Archive,Set<String>>> deps = new HashMap<>(); private final boolean showJdkInternals; private final boolean reduced; private final PrintWriter writer; private final String separator; public ModuleExportsAnalyzer(JdepsConfiguration config, JdepsFilter filter, boolean showJdkInternals, boolean reduced, PrintWriter writer, String separator) { super(config, filter, null, Analyzer.Type.PACKAGE, false /* all classes */); this.showJdkInternals = showJdkInternals; this.reduced = reduced; this.writer = writer; this.separator = separator; } @Override public boolean run() throws IOException { // analyze dependences boolean rc = super.run(); // A visitor to record the module-level dependences as well as // use of JDK internal APIs Analyzer.Visitor visitor = (origin, originArchive, target, targetArchive) -> { Set<String> jdkInternals = deps.computeIfAbsent(originArchive, _k -> new HashMap<>()) .computeIfAbsent(targetArchive, _k -> new HashSet<>()); Module module = targetArchive.getModule(); if (showJdkInternals && originArchive.getModule() != module && module.isJDK() && !module.isExported(target)) { // use of JDK internal APIs jdkInternals.add(target); } }; // visit the dependences archives.stream() .filter(analyzer::hasDependences) .sorted(Comparator.comparing(Archive::getName)) .forEach(archive -> analyzer.visitDependences(archive, visitor)); Set<Module> modules = modules(); if (showJdkInternals) { // print modules and JDK internal API dependences printDependences(modules); } else { // print module dependences writer.println(modules.stream().map(Module::name).sorted() .collect(Collectors.joining(separator))); } return rc; } private Set<Module> modules() { // build module graph ModuleGraphBuilder builder = new ModuleGraphBuilder(configuration); Module root = new RootModule("root"); builder.addModule(root); // find named module dependences dependenceStream() .flatMap(map -> map.keySet().stream()) .filter(m -> m.getModule().isNamed() && !configuration.rootModules().contains(m)) .map(Archive::getModule) .forEach(m -> builder.addEdge(root, m)); // build module dependence graph // if reduced is set, apply transition reduction Graph<Module> g = reduced ? builder.reduced() : builder.build(); return g.adjacentNodes(root); } private void printDependences(Set<Module> modules) { // find use of JDK internals Map<Module, Set<String>> jdkinternals = new HashMap<>(); dependenceStream() .flatMap(map -> map.entrySet().stream()) .filter(e -> e.getValue().size() > 0) .forEach(e -> jdkinternals.computeIfAbsent(e.getKey().getModule(), _k -> new TreeSet<>()) .addAll(e.getValue())); // print modules and JDK internal API dependences Stream.concat(modules.stream(), jdkinternals.keySet().stream()) .sorted(Comparator.comparing(Module::name)) .distinct() .forEach(m -> { if (jdkinternals.containsKey(m)) { jdkinternals.get(m).stream() .forEach(pn -> writer.format(" %s/%s%s", m, pn, separator)); } else { writer.format(" %s%s", m, separator); } }); } /* * Returns a stream of dependence map from an Archive to the set of JDK * internal APIs being used. */ private Stream<Map<Archive, Set<String>>> dependenceStream() { return deps.keySet().stream() .filter(source -> !source.getModule().isNamed() || configuration.rootModules().contains(source)) .map(deps::get); } private class RootModule extends Module { final ModuleDescriptor descriptor; RootModule(String name) { super(name); ModuleDescriptor.Builder builder = ModuleDescriptor.newModule(name); this.descriptor = builder.build(); } @Override public ModuleDescriptor descriptor() { return descriptor; } } }
⏎ com/sun/tools/jdeps/ModuleExportsAnalyzer.java
Or download all of them as a single archive file:
File name: jdk.jdeps-11.0.1-src.zip File size: 244145 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jdi.jmod - JDI Tool
2020-07-07, 36713👍, 0💬
Popular Posts:
What Is HttpComponents httpclient-4.2.2.jar? HttpComponents httpclient-4.2.2.jar is the JAR file for...
commons-fileupload-1.3.3 -sources.jaris the source JAR file for Apache Commons FileUpload 1.3., whic...
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" co...
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
XStream is a simple library to serialize objects to XML and back again. JAR File Size and Download L...