Interface ToDoubleExpression

All Superinterfaces:
Expression
All Known Implementing Classes:
AbstractBinaryToDoubleExpression, AbstractToDoubleExpression, AbstractUnaryToDoubleExpression, ToDoubleExpression.ConstantToDoubleExpression

public interface ToDoubleExpression extends Expression
Expression interface to turn an expression into a double.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Pre-made class that can be used through the literal method of the ToDoubleExpression interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Method used to return a double value.
    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

      static ToDoubleExpression literal(double value)
      Creates a new ToDoubleExpression instance containing the provided double value.
      Parameters:
      value - The double value for the ToDoubleExpression to hold.
      Returns:
      New ToDoubleExpression instance.