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