Package com.aspectran.shell.console
Class AbstractShellConsole
java.lang.Object
com.aspectran.shell.console.AbstractShellConsole
- All Implemented Interfaces:
ShellConsole
- Direct Known Subclasses:
DefaultShellConsole
,JLineShellConsole
The Abstract Class for Console I/O.
Created: 2017. 3. 4.
-
Field Summary
Fields inherited from interface com.aspectran.shell.console.ShellConsole
COMMENT_DELIMITER, COMMENT_PROMPT, DEFAULT_PROMPT, MASK_CHAR, MULTILINE_DELIMITER, MULTILINE_PROMPT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
String[]
String[]
String[]
String[]
String[]
String[]
readLine()
protected String
readMultiCommandLine
(String line) protected String
readMultiLine
(String line) protected abstract String
readRawCommandLine
(String prompt) protected abstract String
readRawLine
(String prompt) void
setCommandPrompt
(String commandPrompt) void
setConsoleCommander
(ConsoleCommander consoleCommander) void
setShellStyleConfig
(ShellStyleConfig shellStyleConfig) void
setWorkingDir
(File workingDir) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aspectran.shell.console.ShellConsole
clearCommandHistory, clearLine, clearScreen, dangerStyle, getCommandHistory, getOutput, getWriter, hasStyle, infoStyle, isReading, newPromptStringBuilder, readCommandLine, readLine, readPassword, redrawLine, resetStyle, resetStyle, secondaryStyle, setCommandHistoryFile, setStyle, successStyle, warningStyle, write, write, writeAbove, writeError, writeError, writeLine, writeLine, writeLine
-
Constructor Details
-
AbstractShellConsole
-
-
Method Details
-
getEncoding
- Specified by:
getEncoding
in interfaceShellConsole
-
getWorkingDir
- Specified by:
getWorkingDir
in interfaceShellConsole
-
setWorkingDir
- Specified by:
setWorkingDir
in interfaceShellConsole
-
getConsoleCommander
- Specified by:
getConsoleCommander
in interfaceShellConsole
-
setConsoleCommander
- Specified by:
setConsoleCommander
in interfaceShellConsole
-
getCommandPrompt
- Specified by:
getCommandPrompt
in interfaceShellConsole
-
setCommandPrompt
- Specified by:
setCommandPrompt
in interfaceShellConsole
-
readLine
- Specified by:
readLine
in interfaceShellConsole
-
readPassword
- Specified by:
readPassword
in interfaceShellConsole
-
readMultiCommandLine
-
readMultiLine
-
readRawCommandLine
-
readRawLine
-
setShellStyleConfig
- Specified by:
setShellStyleConfig
in interfaceShellConsole
-
getPrimaryStyle
- Specified by:
getPrimaryStyle
in interfaceShellConsole
-
getSecondaryStyle
- Specified by:
getSecondaryStyle
in interfaceShellConsole
-
getSuccessStyle
- Specified by:
getSuccessStyle
in interfaceShellConsole
-
getDangerStyle
- Specified by:
getDangerStyle
in interfaceShellConsole
-
getWarningStyle
- Specified by:
getWarningStyle
in interfaceShellConsole
-
getInfoStyle
- Specified by:
getInfoStyle
in interfaceShellConsole
-
confirmRestart
public boolean confirmRestart()- Specified by:
confirmRestart
in interfaceShellConsole
-
confirmQuit
public boolean confirmQuit()- Specified by:
confirmQuit
in interfaceShellConsole
-