Interface ToDoubleExpression
- All Superinterfaces:
Expression
- All Known Implementing Classes:
AbstractBinaryToDoubleExpression
,AbstractToDoubleExpression
,AbstractUnaryToDoubleExpression
,ToDoubleExpression.ConstantToDoubleExpression
Expression interface to turn an expression into a double.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Pre-made class that can be used through theliteral method
of the ToDoubleExpression interface. -
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluate()
Method used to return a double value.static ToDoubleExpression
literal
(double value) Creates a new ToDoubleExpression instance containing the provided double value.
-
Method Details
-
evaluate
double evaluate()Method used to return a double value.- Returns:
- double value.
-
literal
Creates a new ToDoubleExpression instance containing the provided double value.- Parameters:
value
- The double value for the ToDoubleExpression to hold.- Returns:
- New ToDoubleExpression instance.
-