|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.nmu.os.shell.CommandLineImpl
Represents a shell command line
TODO: man page
Constructor Summary | |
CommandLineImpl(Shell s)
Creates a new CommandLineImpl |
|
CommandLineImpl(Shell sh,
java.lang.String s)
Creates a new CommandLineImpl from the given String |
Method Summary | |
void |
append(java.lang.String s)
Appends the given String to the CommandLine |
Command[] |
getCommands()
Generates Commands from the CommandLine |
java.lang.String[] |
getUnresolved()
Returns the names of any unresolvable programs |
boolean |
isComplete()
Determines whether or not the CommandLine is syntactically complete |
boolean |
isExit()
Determines whether or not the CommandLine should exit the current Shell |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CommandLineImpl(Shell s)
public CommandLineImpl(Shell sh, java.lang.String s)
s
- the String from which to construct
this CommandLineImplMethod Detail |
public boolean isComplete()
CommandLine
isComplete
in interface CommandLine
public void append(java.lang.String s)
CommandLine
append
in interface CommandLine
s
- the String to be appendedpublic java.lang.String toString()
toString
in class java.lang.Object
public Command[] getCommands() throws java.io.IOException
CommandLine
getCommands
in interface CommandLine
java.io.IOException
public java.lang.String[] getUnresolved()
CommandLine
getUnresolved
in interface CommandLine
public boolean isExit()
CommandLine
isExit
in interface CommandLine
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |