Interface IExpression<V extends IValue>

All Superinterfaces:
IVariable<V>, IVariableInvalidateListener
All Known Implementing Classes:
LazyExpression

public interface IExpression<V extends IValue> extends IVariable<V>
Generic expression that can evaluate expressions with variables to a value.
  • Method Details

    • evaluate

      IValue evaluate() throws EvaluationException
      Returns:
      The current evaluation result of the input variables.
      Throws:
      EvaluationException - When something went wrong while evaluating.
    • hasErrored

      boolean hasErrored()
      Returns:
      If this expression last evaluation resulted in an error.