Package org.jline.console.impl
Class SimpleSystemRegistryImpl
java.lang.Object
org.jline.console.impl.SystemRegistryImpl
org.jline.console.impl.SimpleSystemRegistryImpl
- All Implemented Interfaces:
ConsoleOptionGetter,CommandRegistry,SystemRegistry
Simple SystemRegistry which stores variables in the LineReader.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jline.console.impl.SystemRegistryImpl
SystemRegistryImpl.CommandData, SystemRegistryImpl.Pipe, SystemRegistryImpl.UnknownCommandExceptionNested classes/interfaces inherited from interface org.jline.console.CommandRegistry
CommandRegistry.CommandSessionNested classes/interfaces inherited from interface org.jline.console.SystemRegistry
SystemRegistry.Registeries -
Field Summary
Fields inherited from class org.jline.console.impl.SystemRegistryImpl
configPath, parser, workDir -
Constructor Summary
ConstructorsConstructorDescriptionSimpleSystemRegistryImpl(Parser parser, Terminal terminal, Supplier<Path> workDir, ConfigurationPath configPath) -
Method Summary
Modifier and TypeMethodDescription<T> TconsoleOption(String name, T defVal) Return console option valuevoidsetConsoleOption(String name, Object value) Set console option valuevoidsetLineReader(LineReader lineReader) Methods inherited from class org.jline.console.impl.SystemRegistryImpl
addCompleter, cleanUp, close, commandAliases, commandDescription, commandDescription, commandInfo, commandNames, compileCompleters, completer, consoleEngine, consoleOption, execute, getPipeNames, groupCommandsInHelp, hasCommand, initialize, invoke, isCommandAlias, isCommandOrScript, isCommandOrScript, register, rename, setCommandRegistries, setGroupCommandsInHelp, setScriptDescription, terminal, trace, traceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jline.console.CommandRegistry
invoke, name
-
Constructor Details
-
SimpleSystemRegistryImpl
public SimpleSystemRegistryImpl(Parser parser, Terminal terminal, Supplier<Path> workDir, ConfigurationPath configPath)
-
-
Method Details
-
setLineReader
-
consoleOption
Description copied from interface:SystemRegistryReturn console option value- Specified by:
consoleOptionin interfaceConsoleOptionGetter- Specified by:
consoleOptionin interfaceSystemRegistry- Overrides:
consoleOptionin classSystemRegistryImpl- Type Parameters:
T- option type- Parameters:
name- the option namedefVal- value to return if console option does not exists- Returns:
- option value
-
setConsoleOption
Description copied from interface:SystemRegistrySet console option value- Specified by:
setConsoleOptionin interfaceSystemRegistry- Overrides:
setConsoleOptionin classSystemRegistryImpl- Parameters:
name- the option namevalue- value to assign console option
-