Interface IEvaluationContext
-
public interface IEvaluationContextThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IIndexProvider<?>getIndexProvider()ObjectgetParameter(int position)Returns the value of the parameter at the givenpositionObjectgetValue(IExpression variable)Retrieve the value of the givenvariablefrom this contextvoidsetIndexProvider(IIndexProvider<?> indexProvider)voidsetValue(IExpression variable, Object value)Set the current value for the givenvariabletovalue
-
-
-
Method Detail
-
getIndexProvider
IIndexProvider<?> getIndexProvider()
-
setIndexProvider
void setIndexProvider(IIndexProvider<?> indexProvider)
-
getValue
Object getValue(IExpression variable)
Retrieve the value of the givenvariablefrom this context- Parameters:
variable- The variable who's value should be retrieved- Returns:
- The current value for the variable
-
setValue
void setValue(IExpression variable, Object value)
Set the current value for the givenvariabletovalue- Parameters:
variable- The variable who's value should be setvalue- The new value for the variable.
-
getParameter
Object getParameter(int position)
Returns the value of the parameter at the givenposition- Parameters:
position- The zero based position for the parameter- Returns:
- The parameter value
-
-