|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Shell
Models a shell (command interpreter) The Shell knows the (Juno) system it's working in, the User who started it, and the console to which to send output. It keeps track of the the current working directory (.) .
Method Summary | |
OutputInterface |
getConsole()
The console associated with this Shell. |
Directory |
getDot()
The current working directory for this shell. |
String |
getPrompt()
The prompt for the CLI. |
Juno |
getSystem()
The Juno object associated with this Shell. |
User |
getUser()
The User associated with this shell. |
boolean |
interpret(String inputLine)
Interpret a String. |
void |
setDot(Directory dot)
Set the current working directory for this Shell. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public OutputInterface getConsole()
public Directory getDot()
public String getPrompt()
public Juno getSystem()
public User getUser()
public boolean interpret(String inputLine)
shellcommand command-arguments
interpret
in interface InterpreterInterface
inputLine
- the String to interpret.
public void setDot(Directory dot)
dot
- the new working directory.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |