Package com.fathzer.soft.javaluator
Class StaticVariableSet<T>
java.lang.Object
com.fathzer.soft.javaluator.StaticVariableSet<T>
- Type Parameters:
T- The type of the values of the variable (the one handled by the evaluator).
- All Implemented Interfaces:
AbstractVariableSet<T>
A static variable set.
Here, static means that the values of variables are set before starting to evaluate the expressions.
Here, static means that the values of variables are set before starting to evaluate the expressions.
- Author:
- Jean-Marc Astesana
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StaticVariableSet
public StaticVariableSet()Constructor.
Builds a new empty variable set.
-
-
Method Details
-
get
Gets the value of a variable.- Specified by:
getin interfaceAbstractVariableSet<T>- Parameters:
variableName- The name of the variable.- Returns:
- The value of the variable.
-
set
Sets a variable value.- Parameters:
variableName- The variable namevalue- The variable value (null to remove a variable from the set).
-