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.jshell.jmod - JShell Tool
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell" command.
JDK 11 JShell tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jshell.jmod.
JDK 11 JShell tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JShell tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jshell.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/internal/jshell/tool/JShellToolProvider.java
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.jshell.tool; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; import java.util.Collections; import java.util.EnumSet; import java.util.Set; import javax.lang.model.SourceVersion; import javax.tools.Tool; import jdk.jshell.tool.JavaShellToolBuilder; /** * Provider for launching the jshell tool. */ public class JShellToolProvider implements Tool { /** * Returns the name of this Java shell tool provider. * * @return the name of this tool provider */ @Override public String name() { return "jshell"; } /** * Run the jshell tool. The streams {@code out} and {@code err} are * converted to {@code PrintStream} if they are not already. * Any {@code Exception} is caught, printed and results in a non-zero return. * * @param in command line input (snippets and commands), and execution * "standard" input; use System.in if null * @param out command line output, feedback including errors, and execution * "standard" output; use System.out if null * @param err start-up errors and execution "standard" error; use System.err * if null * @param arguments arguments to pass to the tool * @return the exit status with which the tool explicitly exited (if any), * otherwise 0 for success or 1 for failure * @throws NullPointerException if the array of arguments contains * any {@code null} elements. */ @Override public int run(InputStream in, OutputStream out, OutputStream err, String... arguments) { InputStream xin = (in == null) ? System.in : in; PrintStream xout = (out == null) ? System.out : (out instanceof PrintStream) ? (PrintStream) out : new PrintStream(out); PrintStream xerr = (err == null) ? System.err : (err instanceof PrintStream) ? (PrintStream) err : new PrintStream(err); try { return JavaShellToolBuilder .builder() .in(xin, null) .out(xout) .err(xerr) .start(arguments); } catch (Throwable ex) { xerr.println(ex.getMessage()); return 1; } } /** * Returns the source versions of the jshell tool. * @return a set of supported source versions */ @Override public Set<SourceVersion> getSourceVersions() { return Collections.unmodifiableSet( EnumSet.range(SourceVersion.RELEASE_9, SourceVersion.latest())); } /** * Launch the tool and exit. * @param arguments the command-line arguments (including options), if any * @throws Exception an unexpected fatal exception */ public static void main(String[] arguments) throws Exception { System.exit( JavaShellToolBuilder .builder() .start(arguments)); } }
⏎ jdk/internal/jshell/tool/JShellToolProvider.java
Or download all of them as a single archive file:
File name: jdk.jshell-11.0.1-src.zip File size: 283093 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jsobject.jmod - JS Object Module
2020-06-30, 29236👍, 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 ...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
Apache Ant is a Java-based build tool. In theory, it is kind of like make, without make's wrinkles. ...
commons-collections4-4.4 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module. JDK 17 Hotspot Agent...