Package jline.console
Class ConsoleKeys
- java.lang.Object
-
- jline.console.ConsoleKeys
-
public class ConsoleKeys extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConsoleKeys(java.lang.String appName, java.net.URL inputrcUrl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static chargetKeyFromName(java.lang.String name)protected java.util.Map<java.lang.String,KeyMap>getKeyMaps()protected KeyMapgetKeys()java.lang.StringgetVariable(java.lang.String var)Retrieves the value of a variable that was set in the .inputrc file during processingprivate voidloadKeys(java.io.InputStream input, java.lang.String appName)protected voidloadKeys(java.lang.String appName, java.net.URL inputrcUrl)protected booleansetKeyMap(java.lang.String name)protected voidsetKeys(KeyMap keys)private voidsetVar(java.lang.String key, java.lang.String val)private static java.lang.StringtranslateQuoted(java.lang.String keySeq)
-
-
-
Method Detail
-
setKeyMap
protected boolean setKeyMap(java.lang.String name)
-
getKeyMaps
protected java.util.Map<java.lang.String,KeyMap> getKeyMaps()
-
getKeys
protected KeyMap getKeys()
-
setKeys
protected void setKeys(KeyMap keys)
-
loadKeys
protected void loadKeys(java.lang.String appName, java.net.URL inputrcUrl)
-
loadKeys
private void loadKeys(java.io.InputStream input, java.lang.String appName) throws java.io.IOException- Throws:
java.io.IOException
-
translateQuoted
private static java.lang.String translateQuoted(java.lang.String keySeq)
-
getKeyFromName
private static char getKeyFromName(java.lang.String name)
-
setVar
private void setVar(java.lang.String key, java.lang.String val)
-
getVariable
public java.lang.String getVariable(java.lang.String var)
Retrieves the value of a variable that was set in the .inputrc file during processing- Parameters:
var- The variable name- Returns:
- The variable value.
-
-