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.jshell.jmod - JShell Tool
JDK 17 jdk.jshell.jmod is the JMOD file for JDK 17 JShell tool, which can be invoked by the "jshell" command.
JDK 17 JShell tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jshell.jmod.
JDK 17 JShell tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JShell tool source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jshell.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jshell/OuterWrapMap.java
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jshell; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.regex.Matcher; import java.util.stream.Collectors; import jdk.jshell.Wrap.CompoundWrap; import static jdk.jshell.Util.PREFIX_PATTERN; import static jdk.jshell.Util.REPL_CLASS_PREFIX; import static jdk.jshell.Util.REPL_DOESNOTMATTER_CLASS_NAME; import static jdk.jshell.Util.asLetters; /** * * @author Robert Field */ class OuterWrapMap { private final JShell state; private final Map<String,OuterSnippetsClassWrap> classOuters = new HashMap<>(); OuterWrapMap(JShell state) { this.state = state; } OuterSnippetsClassWrap getOuter(String className) { Matcher matcher = PREFIX_PATTERN.matcher(className); String cn; if (matcher.find() && (cn = matcher.group("class")) != null) { return classOuters.get(cn); } return null; } private CompoundWrap wrappedInClass(String className, String imports, List<Wrap> wraps) { List<Object> elems = new ArrayList<>(wraps.size() + 2); elems.add(imports + "\n" + "class " + className + " {\n"); elems.addAll(wraps); elems.add("}\n"); return new CompoundWrap(elems.toArray()); } OuterWrap wrapInClass(Set<Key> except, Collection<Snippet> plus, List<Snippet> snippets, List<Wrap> wraps) { String imports = state.maps.packageAndImportsExcept(except, plus); // className is unique to the set of snippets and their version (seq) String className = REPL_CLASS_PREFIX + snippets.stream() .sorted((sn1, sn2) -> sn1.key().index() - sn2.key().index()) .map(sn -> "" + sn.key().index() + asLetters(sn.sequenceNumber())) .collect(Collectors.joining("_")); CompoundWrap w = wrappedInClass(className, imports, wraps); OuterSnippetsClassWrap now = new OuterSnippetsClassWrap(className, w, snippets, wraps); classOuters.put(className, now); return now; } OuterWrap wrapInTrialClass(Wrap wrap) { String imports = state.maps.packageAndImportsExcept(null, null); CompoundWrap w = wrappedInClass(REPL_DOESNOTMATTER_CLASS_NAME, imports, Collections.singletonList(wrap)); return new OuterWrap(w); } OuterWrap wrapImport(Wrap guts, Snippet sn) { return new OuterImportSnippetWrap(guts, sn); } }
⏎ jdk/jshell/OuterWrapMap.java
Or download all of them as a single archive file:
File name: jdk.jshell-17.0.5-src.zip File size: 302589 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jsobject.jmod - JS Object Module
2023-08-03, 5932👍, 0💬
Popular Posts:
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
If you are a Java developer, it is very often that you need to use some 3rd party libraries to perfo...
XML Serializer, Release 2.7.1, allows you to write out XML, HTML etc. as a stream of characters from...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...