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/execution/JdiExecutionControlProvider.java
/* * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jshell.execution; import java.io.IOException; import java.util.HashMap; import java.util.Locale; import java.util.Map; import jdk.jshell.spi.ExecutionControl; import jdk.jshell.spi.ExecutionControlProvider; import jdk.jshell.spi.ExecutionEnv; /** * A provider of remote JDI-controlled execution engines. * * @author Robert Field * @since 9 */ public class JdiExecutionControlProvider implements ExecutionControlProvider { /** * The remote agent to launch. */ public static final String PARAM_REMOTE_AGENT = "remoteAgent"; /** * Milliseconds before connect timeout. */ public static final String PARAM_TIMEOUT = "timeout"; /** * The local hostname to connect to. */ public static final String PARAM_HOST_NAME = "hostname"; /** * Should JDI-controlled launching be used? */ public static final String PARAM_LAUNCH = "launch"; /** * Default time-out expressed in milliseconds. */ private static final int DEFAULT_TIMEOUT = 5000; /** * Create an instance. An instance can be used to * {@linkplain #generate generate} an {@link ExecutionControl} instance * that uses the Java Debug Interface as part of the control of a remote * process. */ public JdiExecutionControlProvider() { } /** * The unique name of this {@code ExecutionControlProvider}. * * @return "jdi" */ @Override public String name() { return "jdi"; } /** * Create and return the default parameter map for this * {@code ExecutionControlProvider}. The map can optionally be modified; * Modified or unmodified it can be passed to * {@link #generate(jdk.jshell.spi.ExecutionEnv, java.util.Map) }. * <table class="striped"> * <caption>Parameters</caption> * <thead> * <tr> * <th scope="col">Parameter</th> * <th scope="col">Description</th> * <th scope="col">Constant Field</th> * </tr> * </thead> * <tbody> * <tr> * <th scope="row">remoteAgent</th> * <td>the remote agent to launch</td> * <td>{@link #PARAM_REMOTE_AGENT}</td> * </tr> * <tr> * <th scope="row">timeout</th> * <td>milliseconds before connect timeout</td> * <td>{@link #PARAM_TIMEOUT}</td> * </tr> * <tr> * <th scope="row">launch</th> * <td>"true" for JDI controlled launch</td> * <td>{@link #PARAM_LAUNCH}</td> * </tr> * <tr> * <th scope="row">hostname</th> * <td>connect to the named of the local host ("" for discovered)</td> * <td>{@link #PARAM_HOST_NAME}</td> * </tr> * </tbody> * </table> * * @return the default parameter map */ @Override public Map<String, String> defaultParameters() { Map<String, String> dp = new HashMap<>(); dp.put(PARAM_REMOTE_AGENT, RemoteExecutionControl.class.getName()); dp.put(PARAM_TIMEOUT, "" + DEFAULT_TIMEOUT); dp.put(PARAM_HOST_NAME, ""); dp.put(PARAM_LAUNCH, "false"); return dp; } @Override public ExecutionControl generate(ExecutionEnv env, Map<String, String> parameters) throws IOException { Map<String, String> dp = defaultParameters(); if (parameters == null) { parameters = dp; } String remoteAgent = parameters.getOrDefault(PARAM_REMOTE_AGENT, dp.get(PARAM_REMOTE_AGENT)); int timeout = Integer.parseUnsignedInt( parameters.getOrDefault(PARAM_TIMEOUT, dp.get(PARAM_TIMEOUT))); String host = parameters.getOrDefault(PARAM_HOST_NAME, dp.get(PARAM_HOST_NAME)); String sIsLaunch = parameters.getOrDefault(PARAM_LAUNCH, dp.get(PARAM_LAUNCH)).toLowerCase(Locale.ROOT); boolean isLaunch = sIsLaunch.length() > 0 && ("true".startsWith(sIsLaunch) || "yes".startsWith(sIsLaunch)); return JdiDefaultExecutionControl.create(env, remoteAgent, isLaunch, host, timeout); } }
⏎ jdk/jshell/execution/JdiExecutionControlProvider.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, 5891👍, 0💬
Popular Posts:
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...