class BatchCommand extends Command
Modifier and Type | Field and Description |
---|---|
private String |
bufferSource |
private List<String> |
commandBuffer |
Constructor and Description |
---|
BatchCommand(Console console,
String bufferSource,
List<String> buffer) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Interpreter interpreter)
Hook to provide various implementations of command execution.
|
String |
toString() |
getInputStream
private final String bufferSource
private final List<String> commandBuffer
public BatchCommand(Console console, String bufferSource, List<String> buffer)
public void execute(Interpreter interpreter) throws Exception
Command
execute
in class Command
interpreter
- Jython interpreter that will execute the command.Exception
- An error was encountered executing the command. Jython
will catch three standard Python exceptions: SyntaxError, ValueError,
and OverflowError. Other exceptions are thrown.