public class JLineProcessor extends Object implements Runnable, jline.console.completer.Completer
| Modifier and Type | Class and Description |
|---|---|
private class |
JLineProcessor.ConsoleInputStream |
private class |
JLineProcessor.Pipe |
| Modifier and Type | Field and Description |
|---|---|
private InputStream |
consoleInput |
(package private) AtomicReference<ShellProcess> |
current
.
|
private boolean |
eof |
private PrintStream |
err |
static String |
IGNORE_INTERRUPTS |
private InputStream |
in |
private boolean |
interrupt |
private PrintStream |
out |
private Thread |
pipe |
private BlockingQueue<Integer> |
queue |
(package private) jline.console.ConsoleReader |
reader
.
|
private boolean |
running |
private Shell |
shell
.
|
private Thread |
thread |
(package private) boolean |
useAlternate
Whether or not we switched on the alternate screen.
|
(package private) PrintWriter |
writer
.
|
| Constructor and Description |
|---|
JLineProcessor(Shell shell,
InputStream in,
PrintStream out,
PrintStream err,
jline.Terminal term) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
private void |
checkInterrupt() |
int |
complete(String buffer,
int cursor,
List<CharSequence> candidates) |
private boolean |
getBoolean(String name) |
(package private) String |
getPrompt() |
private void |
interrupt() |
private void |
loop() |
private String |
readAndParseCommand() |
void |
run() |
final jline.console.ConsoleReader reader
final PrintWriter writer
final AtomicReference<ShellProcess> current
boolean useAlternate
private BlockingQueue<Integer> queue
private boolean interrupt
private volatile boolean running
private volatile boolean eof
private InputStream consoleInput
private InputStream in
private PrintStream out
private PrintStream err
public static final String IGNORE_INTERRUPTS
public JLineProcessor(Shell shell, InputStream in, PrintStream out, PrintStream err, jline.Terminal term) throws IOException
IOExceptionprivate boolean getBoolean(String name)
private void checkInterrupt() throws IOException
IOExceptionprivate void interrupt()
private String readAndParseCommand() throws IOException
IOExceptionprivate void loop()
public int complete(String buffer, int cursor, List<CharSequence> candidates)
complete in interface jline.console.completer.Completerpublic void cancel()
Copyright © 2014 eXo Platform SAS. All Rights Reserved.