class LineCommand extends Command
| Modifier and Type | Field and Description |
|---|---|
private String |
command
The line of jython that needs to be passed to the interpreter
|
| Constructor and Description |
|---|
LineCommand(Console console,
String command)
Creates a command based upon the contents of
command. |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Interpreter interpreter)
Attempts to execute a line of Jython.
|
String |
toString() |
getInputStreampublic LineCommand(Console console, String command)
command.console - Console where the specified text came from.command - Text that will be passed to an Interpreter for
execution.public void execute(Interpreter interpreter) throws Exception
Command.console, depending upon whether Jython requires more
input.execute in class Commandinterpreter - Interpreter that will execute this command.Exception - See Command.execute(Interpreter).