Interface IEvaluationContext
public interface IEvaluationContext
The evaluation context. Contexts can be nested and new contexts are pushed for each closure
during an evaluation of an expression.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiongetParameter
(int position) Returns the value of the parameter at the givenposition
getValue
(IExpression variable) Retrieve the value of the givenvariable
from this contextvoid
setIndexProvider
(IIndexProvider<?> indexProvider) void
setValue
(IExpression variable, Object value) Set the current value for the givenvariable
tovalue
-
Method Details
-
getIndexProvider
IIndexProvider<?> getIndexProvider() -
setIndexProvider
-
getValue
Retrieve the value of the givenvariable
from this context- Parameters:
variable
- The variable who's value should be retrieved- Returns:
- The current value for the variable
-
setValue
Set the current value for the givenvariable
tovalue
- Parameters:
variable
- The variable who's value should be setvalue
- The new value for the variable.
-
getParameter
Returns the value of the parameter at the givenposition
- Parameters:
position
- The zero based position for the parameter- Returns:
- The parameter value
-