public class InteractiveCommandSource extends CommandSource
err| Constructor and Description |
|---|
InteractiveCommandSource(Worker worker) |
InteractiveCommandSource(Worker worker,
ConsoleReader cr) |
InteractiveCommandSource(Worker worker,
ConsoleReader cr,
java.io.PrintStream out) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getNextCommand(java.util.List<java.lang.String> buf) |
protected void |
handleSyntaxError() |
boolean |
reportError(java.lang.String message)
Reports an error back to the user.
|
reportErrorpublic InteractiveCommandSource(Worker worker) throws java.io.IOException
java.io.IOExceptionpublic InteractiveCommandSource(Worker worker, ConsoleReader cr)
public InteractiveCommandSource(Worker worker, ConsoleReader cr, java.io.PrintStream out)
public java.util.List<java.lang.String> getNextCommand(java.util.List<java.lang.String> buf)
protected void handleSyntaxError()
throws java.io.IOException
java.io.IOExceptionpublic boolean reportError(java.lang.String message)
CommandSource