public class ConsoleBeanShell extends Shell
Shell.CompletionInfo, Shell.ShellAction, Shell.SwitchAction, Shell.ToggleAction
Constructor and Description |
---|
ConsoleBeanShell() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Console console,
java.lang.String input,
Output output,
Output error,
java.lang.String command)
Executes a command.
|
void |
printInfoMessage(Output output)
Prints a 'info' message to the specified console.
|
void |
printPrompt(Console console,
Output output)
Prints a prompt to the specified console.
|
void |
stop(Console console)
Stops the currently executing command, if any.
|
boolean |
waitFor(Console console)
Waits until any currently executing commands finish.
|
chDir, closeConsole, detach, endOfFile, execute, getCompletions, getName, getShell, getShellNames, handlesVFS, openConsole, toString
public void printInfoMessage(Output output)
Shell
printInfoMessage
in class Shell
output
- The outputpublic void printPrompt(Console console, Output output)
printPrompt
in class Shell
output
- The outputconsole
- The console instancepublic void execute(Console console, java.lang.String input, Output output, Output error, java.lang.String command)
Shell
execute
in class Shell
console
- The Console instance, to distinguish it from others when there are
multiple View or Console instances.input
- optional string to feed into the command's Standard inputoutput
- Standard output - the destination to send outputerror
- Standard error - the destionation to send error messagescommand
- The commandpublic void stop(Console console)
Shell