Package de.scravy.bedrock
Class Arithmetic.Expression.LiteralValue
java.lang.Object
de.scravy.bedrock.Arithmetic.Expression.LiteralValue
- All Implemented Interfaces:
Arithmetic.Expression
- Enclosing interface:
- Arithmetic.Expression
public static class Arithmetic.Expression.LiteralValue extends Object implements Arithmetic.Expression
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.scravy.bedrock.Arithmetic.Expression
Arithmetic.Expression.BinaryOperation, Arithmetic.Expression.LiteralValue, Arithmetic.Expression.VariableReference -
Constructor Summary
Constructors Constructor Description LiteralValue() -
Method Summary
Modifier and Type Method Description BigDecimaleval(Function<String,BigDecimal> variableBindings)Arithmetic.OptimizedExpressionoptimize(Map<String,BigDecimal> constants)
-
Constructor Details
-
LiteralValue
public LiteralValue()
-
-
Method Details
-
eval
- Specified by:
evalin interfaceArithmetic.Expression
-
optimize
- Specified by:
optimizein interfaceArithmetic.Expression
-