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.internal.le.jmod - Internal Line Editing Module
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module.
JDK 11 Internal Line Editing module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.internal.le.jmod.
JDK 11 Internal Line Editing module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Internal Line Editing module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.internal.le.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/internal/jline/console/internal/ConsoleRunner.java
/* * Copyright (c) 2002-2016, the original author or authors. * * This software is distributable under the BSD license. See the terms of the * BSD license in the documentation provided with this software. * * http://www.opensource.org/licenses/bsd-license.php */ package jdk.internal.jline.console.internal; import jdk.internal.jline.console.ConsoleReader; import jdk.internal.jline.console.completer.ArgumentCompleter; import jdk.internal.jline.console.completer.Completer; import jdk.internal.jline.console.history.FileHistory; import jdk.internal.jline.console.history.PersistentHistory; import jdk.internal.jline.internal.Configuration; import java.io.File; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.StringTokenizer; // FIXME: Clean up API and move to jline.console.runner package /** * A pass-through application that sets the system input stream to a * {@link ConsoleReader} and invokes the specified main method. * * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a> * @since 2.7 */ public class ConsoleRunner { public static final String property = "jline.history"; // FIXME: This is really ugly... re-write this public static void main(final String[] args) throws Exception { List<String> argList = new ArrayList<String>(Arrays.asList(args)); if (argList.size() == 0) { usage(); return; } String historyFileName = System.getProperty(ConsoleRunner.property, null); String mainClass = argList.remove(0); ConsoleReader reader = new ConsoleReader(); if (historyFileName != null) { reader.setHistory(new FileHistory(new File(Configuration.getUserHome(), String.format(".jline-%s.%s.history", mainClass, historyFileName)))); } else { reader.setHistory(new FileHistory(new File(Configuration.getUserHome(), String.format(".jline-%s.history", mainClass)))); } String completors = System.getProperty(ConsoleRunner.class.getName() + ".completers", ""); List<Completer> completorList = new ArrayList<Completer>(); for (StringTokenizer tok = new StringTokenizer(completors, ","); tok.hasMoreTokens();) { @SuppressWarnings("deprecation") Object obj = Class.forName(tok.nextToken()).newInstance(); completorList.add((Completer) obj); } if (completorList.size() > 0) { reader.addCompleter(new ArgumentCompleter(completorList)); } ConsoleReaderInputStream.setIn(reader); try { Class<?> type = Class.forName(mainClass); Method method = type.getMethod("main", String[].class); String[] mainArgs = argList.toArray(new String[argList.size()]); method.invoke(null, (Object) mainArgs); } finally { // just in case this main method is called from another program ConsoleReaderInputStream.restoreIn(); if (reader.getHistory() instanceof PersistentHistory) { ((PersistentHistory) reader.getHistory()).flush(); } } } private static void usage() { System.out.println("Usage: \n java " + "[-Djline.history='name'] " + ConsoleRunner.class.getName() + " <target class name> [args]" + "\n\nThe -Djline.history option will avoid history" + "\nmangling when running ConsoleRunner on the same application." + "\n\nargs will be passed directly to the target class name."); } }
⏎ jdk/internal/jline/console/internal/ConsoleRunner.java
Or download all of them as a single archive file:
File name: jdk.internal.le-11.0.1-src.zip File size: 116985 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.internal.opt.jmod - Internal Opt Module
⇐ JDK 11 jdk.internal.jvmstat.jmod - Internal JVM Stat Module
2020-08-02, 18387👍, 0💬
Popular Posts:
How to download and install Apache XMLBeans-2.6.0.zip? If you want to try the XMLBeans Java library,...
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
What Is jaxb-impl-2.1.12.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Jav...