Interface AbstractVariableSet<T>

Type Parameters:
T - The type of the values of the variable (the one handled by the evaluator).
All Superinterfaces:
EvaluationContext
All Known Implementing Classes:
StaticVariableSet

public interface AbstractVariableSet<T> extends EvaluationContext
An abstract variable set.
Javaluator supports expression that contains variables (for example sin(x)).
An AbstractVariableSet converts, during the expression evaluation, each variable to its value.
Author:
Jean-Marc Astesana
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String variableName)
    Gets the value of a variable.

    Methods inherited from interface studio.magemonkey.codex.util.eval.javaluator.EvaluationContext

    getError, getError
  • Method Details

    • get

      T get(String variableName)
      Gets the value of a variable.
      Parameters:
      variableName - The name of a variable
      Returns:
      the variable's value or null if the variable is unknown