|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.processor.jline.JLineProcessContext
class JLineProcessContext
Field Summary | |
---|---|
(package private) CountDownLatch |
latch
. |
private static Character |
NO_ECHO
. |
(package private) JLineProcessor |
processor
. |
(package private) AtomicReference<ShellResponse> |
resp
. |
Constructor Summary | |
---|---|
JLineProcessContext(JLineProcessor processor)
|
Method Summary | |
---|---|
void |
end(ShellResponse response)
This method is invoked when the process ends. |
String |
getProperty(String name)
Returns the property defined within this context. |
int |
getWidth()
Returns the term width in chars. |
String |
readLine(String msg,
boolean echo)
A callback made by the process when it needs to read a line of text on the term. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Character NO_ECHO
final JLineProcessor processor
final CountDownLatch latch
final AtomicReference<ShellResponse> resp
Constructor Detail |
---|
public JLineProcessContext(JLineProcessor processor)
Method Detail |
---|
public int getWidth()
ShellProcessContext
getWidth
in interface ShellProcessContext
public String getProperty(String name)
ShellProcessContext
getProperty
in interface ShellProcessContext
name
- the name of the property
public String readLine(String msg, boolean echo)
ShellProcessContext
readLine
in interface ShellProcessContext
msg
- the message to display prior reading the termecho
- whether the input line should be echoed or not
public void end(ShellResponse response)
ShellProcessContext
end
in interface ShellProcessContext
response
- the shell response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |