Interface ToBooleanExpression

All Superinterfaces:
Expression
All Known Implementing Classes:
AbstractBinaryToBooleanExpression, AbstractToBooleanExpression, AbstractUnaryToBooleanExpression, ToBooleanExpression.ConstantToBooleanExpression

public interface ToBooleanExpression extends Expression
Expression Interface to turn an expression into a boolean value.
  • 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 ToBooleanExpression interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Method used to return a boolean value.
    literal(boolean value)
    Creates a new ToBooleanExpression instance containing the provided boolean value.
  • Method Details

    • evaluate

      boolean evaluate()
      Method used to return a boolean value.
      Returns:
      boolean value
    • literal

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