org.crsh.processor.jline
Class JLineProcessor
java.lang.Object
org.crsh.processor.jline.JLineProcessor
- All Implemented Interfaces:
- Runnable, jline.console.completer.Completer
public class JLineProcessor
- extends Object
- implements Runnable, jline.console.completer.Completer
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shell
private final Shell shell
- .
reader
final jline.console.ConsoleReader reader
- .
writer
final PrintWriter writer
- .
current
final AtomicReference<ShellProcess> current
- .
JLineProcessor
public JLineProcessor(Shell shell,
jline.console.ConsoleReader reader,
PrintWriter writer)
run
public void run()
- Specified by:
run
in interface Runnable
complete
public int complete(String buffer,
int cursor,
List<CharSequence> candidates)
- Specified by:
complete
in interface jline.console.completer.Completer
cancel
public void cancel()
getPrompt
String getPrompt()
Copyright © 2012 eXo Platform SAS. All Rights Reserved.