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
A variable that evaluates an operator at most once, without registering invalidation listeners.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class VariableAdapter
addInvalidationListener, invalidate, removeInvalidationListener
-
Constructor Details
-
OnceVariable
-
-
Method Details
-
getType
- Returns:
- The type of value this variable provides.
-
getValue
- Returns:
- The current value of this variable.
- Throws:
EvaluationException- If something went wrong while evaluating
-