public interface EvaluationEnvironment extends Adaptable, Customizable
Modifier and Type | Interface and Description |
---|---|
static interface |
EvaluationEnvironment.EvaluationEnvironmentExtension |
Modifier and Type | Method and Description |
---|---|
void |
add(TypedElement referredVariable,
java.lang.Object value)
Adds the supplied variable declaration and value binding to the
environment.
|
void |
clear()
Clears the environment of variables.
|
void |
dispose() |
EnvironmentFactory |
getEnvironmentFactory() |
NamedElement |
getExecutableObject() |
ModelManager |
getModelManager()
Deprecated.
moved to Evaluator
|
java.lang.Object |
getValueOf(TypedElement referredVariable)
Returns the value associated with the supplied variable declaration
|
java.util.Set<TypedElement> |
getVariables()
Return the set of all locally registered variables.
|
java.lang.Object |
remove(TypedElement referredVariable)
Removes the supplied variable declaration and binding from the
environment (if it exists) and returns it.
|
void |
replace(TypedElement referredVariable,
java.lang.Object value)
Replaces the current value of the supplied variable declaration with the
supplied value.
|
getAdapter
clearOptions, getOptions, getValue, isEnabled, putOptions, removeOption, removeOptions, setOption
void add(@NonNull TypedElement referredVariable, @Nullable java.lang.Object value)
referredVariable
- the variable declaration to addvalue
- the associated bindingreplace(TypedElement, Object)
void clear()
void dispose()
@NonNull EnvironmentFactory getEnvironmentFactory()
@Nullable java.lang.Object getValueOf(@NonNull TypedElement referredVariable)
referredVariable
- the name whose value is to be returned@NonNull java.util.Set<TypedElement> getVariables()
@Nullable java.lang.Object remove(@NonNull TypedElement referredVariable)
referredVariable
- the variable declaration to removevoid replace(@NonNull TypedElement referredVariable, @Nullable java.lang.Object value)
referredVariable
- the variable declarationvalue
- the new value@Deprecated @NonNull ModelManager getModelManager()
@NonNull NamedElement getExecutableObject()