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.internal.le.jmod - Internal Line Editing Module
JDK 17 jdk.internal.le.jmod is the JMOD file for JDK 17 Internal Line Editing module.
JDK 17 Internal Line Editing module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.internal.le.jmod.
JDK 17 Internal Line Editing module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Internal Line Editing module source code files are stored in \fyicenter\jdk-17.0.5\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/org/jline/reader/History.java
/* * Copyright (c) 2002-2018, 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. * * https://opensource.org/licenses/BSD-3-Clause */ package jdk.internal.org.jline.reader; import java.io.IOException; import java.nio.file.Path; import java.time.Instant; import java.util.Iterator; import java.util.ListIterator; /** * Console history. * * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a> * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> * @since 2.3 */ public interface History extends Iterable<History.Entry> { /** * Initialize the history for the given reader. * @param reader the reader to attach to */ void attach(LineReader reader); /** * Load history. * @throws IOException if a problem occurs */ void load() throws IOException; /** * Save history. * @throws IOException if a problem occurs */ void save() throws IOException; /** * Write history to the file. If incremental only the events that are new since the last incremental operation to * the file are added. * @param file History file * @param incremental If true incremental write operation is performed. * @throws IOException if a problem occurs */ void write(Path file, boolean incremental) throws IOException; /** * Append history to the file. If incremental only the events that are new since the last incremental operation to * the file are added. * @param file History file * @param incremental If true incremental append operation is performed. * @throws IOException if a problem occurs */ void append(Path file, boolean incremental) throws IOException; /** * Read history from the file. If incremental only the events that are not contained within the internal list are added. * @param file History file * @param incremental If true incremental read operation is performed. * @throws IOException if a problem occurs */ void read(Path file, boolean incremental) throws IOException; /** * Purge history. * @throws IOException if a problem occurs */ void purge() throws IOException; int size(); default boolean isEmpty() { return size() == 0; } int index(); int first(); int last(); String get(int index); default void add(String line) { add(Instant.now(), line); } void add(Instant time, String line); /** * Check if an entry should be persisted or not. * * @param entry the entry to check * @return <code>true</code> if the given entry should be persisted, <code>false</code> otherwise */ default boolean isPersistable(Entry entry) { return true; } // // Entries // interface Entry { int index(); Instant time(); String line(); } ListIterator<Entry> iterator(int index); default ListIterator<Entry> iterator() { return iterator(first()); } default Iterator<Entry> reverseIterator() { return reverseIterator(last()); } default Iterator<Entry> reverseIterator(int index) { return new Iterator<Entry>() { private final ListIterator<Entry> it = iterator(index + 1); @Override public boolean hasNext() { return it.hasPrevious(); } @Override public Entry next() { return it.previous(); } @Override public void remove() { it.remove(); resetIndex(); } }; } // // Navigation // /** * Return the content of the current buffer. * * @return the content of the current buffer */ String current(); /** * Move the pointer to the previous element in the buffer. * * @return true if we successfully went to the previous element */ boolean previous(); /** * Move the pointer to the next element in the buffer. * * @return true if we successfully went to the next element */ boolean next(); /** * Moves the history index to the first entry. * * @return Return false if there are no iterator in the history or if the * history is already at the beginning. */ boolean moveToFirst(); /** * This moves the history to the last entry. This entry is one position * before the moveToEnd() position. * * @return Returns false if there were no history iterator or the history * index was already at the last entry. */ boolean moveToLast(); /** * Move to the specified index in the history * * @param index The index to move to. * @return Returns true if the index was moved. */ boolean moveTo(int index); /** * Move to the end of the history buffer. This will be a blank entry, after * all of the other iterator. */ void moveToEnd(); /** * Reset index after remove */ void resetIndex(); }
⏎ jdk/internal/org/jline/reader/History.java
Or download all of them as a single archive file:
File name: jdk.internal.le-17.0.5-src.zip File size: 231458 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.internal.opt.jmod - Internal Opt Module
⇐ JDK 17 jdk.internal.jvmstat.jmod - Internal JVM Stat Module
2023-08-25, 3944👍, 0💬
Popular Posts:
What Is jniwrap.jar in JNIWrapper 3.7.1? winpack.jar in JNIWrapper 3.7.1 is an add-on JAR file for J...
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
This package is the backport of java.util.concurrent API, introduced in Java 5.0 and further refined...
What is ojdbc.jar - JDBC Driver for Oracle? ojdbc.jar is a JDBC driver from Oracle that provides dat...