Class ExpressionEvaluator.OnceVariable<V extends IValue>

java.lang.Object
org.cyclops.integrateddynamics.api.evaluate.expression.VariableAdapter<V>
org.cyclops.integrateddynamics.core.evaluate.expression.tree.ExpressionEvaluator.OnceVariable<V>
Type Parameters:
V - The value type.
All Implemented Interfaces:
IVariable<V>, IVariableInvalidateListener
Enclosing class:
ExpressionEvaluator

public static class ExpressionEvaluator.OnceVariable<V extends IValue> extends VariableAdapter<V>
A variable that evaluates an operator at most once, without registering invalidation listeners.
  • Constructor Details

  • Method Details

    • getType

      public IValueType<V> getType()
      Returns:
      The type of value this variable provides.
    • getValue

      public V getValue() throws EvaluationException
      Returns:
      The current value of this variable.
      Throws:
      EvaluationException - If something went wrong while evaluating