JavaScript is disabled on your browser.
Skip navigation links
Overview
Class
Tree
Deprecated
Index
Search
Help
org.graalvm.shadowed.org.jline.reader
MaskingCallback
Contents
Hide sidebar
❮
❯
Show sidebar
Description
Method Summary
Method Details
display(String)
history(String)
Interface MaskingCallback
All Known Implementing Classes:
SimpleMaskingCallback
public interface
MaskingCallback
Callback used to mask parts of the line
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
String
display
(
String
line)
Transforms the line before it is displayed so that some parts can be hidden.
String
history
(
String
line)
Transforms the line before storing in the history.
Method Details
display
String
display
(
String
line)
Transforms the line before it is displayed so that some parts can be hidden.
Parameters:
line
- the current line being edited
Returns:
the modified line to display
history
String
history
(
String
line)
Transforms the line before storing in the history. If the return value is empty or null, it will not be saved in the history.
Parameters:
line
- the line to be added to history
Returns:
the modified line