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 java.lang.String |
name
Name of the Jython object to remove.
|
| Constructor and Description |
|---|
EjectCommand(Console console,
java.lang.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. |
java.lang.String |
toString() |
getInputStreamprivate java.lang.String name
public EjectCommand(Console console, java.lang.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 java.lang.Exception
name from the local
namespace of interpreter.public java.lang.String toString()
toString in class java.lang.Object