class EjectCommand extends Command
Command that removes an object from the
local namespace of an Interpreter. These commands can remove any
Jython objects, while InjectCommand may only inject Java objects.| Modifier and Type | Field and Description |
|---|---|
private String |
name
Name of the Jython object to remove.
|
| Constructor and Description |
|---|
EjectCommand(Console console,
String name)
Creates an ejection command for
name. |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Interpreter interpreter)
Attempts to remove whatever Jython knows as
name from the local
namespace of interpreter. |
String |
toString() |
getInputStreampublic EjectCommand(Console console, String name)
name.console - Console that requested name's removal.name - Name of the Jython object that needs removin'.public void execute(Interpreter interpreter) throws Exception
name from the local
namespace of interpreter.