|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.term.processor.ProcessContext
class ProcessContext
| Field Summary | |
|---|---|
(package private) ShellProcess |
process
. |
(package private) Processor |
processor
. |
| Constructor Summary | |
|---|---|
ProcessContext(Processor processor,
ShellProcess process)
|
|
| 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. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final Processor processor
final ShellProcess process
| Constructor Detail |
|---|
ProcessContext(Processor processor,
ShellProcess process)
| Method Detail |
|---|
public void run()
run in interface Runnablepublic int getWidth()
ShellProcessContext
getWidth in interface ShellProcessContextpublic String getProperty(String name)
ShellProcessContext
getProperty in interface ShellProcessContextname - the name of the property
public String readLine(String msg,
boolean echo)
ShellProcessContext
readLine in interface ShellProcessContextmsg - 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 ShellProcessContextresponse - the shell response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||