Package com.ezylang.evalex.data
Interface DataAccessorIfc
-
- All Known Implementing Classes:
MapBasedDataAccessor
public interface DataAccessorIfcA data accessor is responsible for accessing data, e.g. variable and constant values during an expression evaluation. The default implementation for setting and reading local data is theMapBasedDataAccessor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EvaluationValuegetData(java.lang.String variable)Retrieves a data value.voidsetData(java.lang.String variable, EvaluationValue value)Sets a data value.
-
-
-
Method Detail
-
getData
EvaluationValue getData(java.lang.String variable)
Retrieves a data value.- Parameters:
variable- The variable name, e.g. a variable or constant name.- Returns:
- The data value, or
nullif not found.
-
setData
void setData(java.lang.String variable, EvaluationValue value)Sets a data value.- Parameters:
variable- The variable name, e.g. a variable or constant name.value- The value to set.
-
-