public final class SimpleExecutionEnvironment extends java.lang.Object implements ExecutionEnvironment
ExecutionEnvironment
.Constructor and Description |
---|
SimpleExecutionEnvironment() |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Called just after the VM is executed, to finalize information of the
execution for the environment.
|
java.lang.Object |
get(java.lang.String id) |
java.lang.Object |
get(java.lang.String id,
java.lang.Object defaultValue) |
boolean |
has(java.lang.String id) |
java.util.Set<java.lang.String> |
keySet() |
boolean |
put(java.lang.String id,
java.lang.Object v) |
java.lang.Object |
remove(java.lang.String id) |
void |
setup()
Called just before the VM is executed, to enable and preparations needed
in the environment.
|
public boolean has(java.lang.String id)
has
in interface ExecutionEnvironment
id
- the variable namepublic java.lang.Object get(java.lang.String id)
get
in interface ExecutionEnvironment
id
- the variable namepublic java.lang.Object get(java.lang.String id, java.lang.Object defaultValue)
get
in interface ExecutionEnvironment
id
- the variable namedefaultValue
- a parameterizable default valuepublic boolean put(java.lang.String id, java.lang.Object v)
put
in interface ExecutionEnvironment
id
- the variable namev
- the value that should be associated with idpublic java.lang.Object remove(java.lang.String id)
remove
in interface ExecutionEnvironment
id
- the variable namepublic java.util.Set<java.lang.String> keySet()
keySet
in interface ExecutionEnvironment
public void commit()
ExecutionEnvironment
commit
in interface ExecutionEnvironment
public void setup()
ExecutionEnvironment
setup
in interface ExecutionEnvironment