Interface BooleanExpr

All Superinterfaces:
Expr, ODataExpr
All Known Implementing Classes:
BooleanBinaryExpr, BooleanUnaryExpr, ComparisonExpr, MethodCallExpr

public interface BooleanExpr extends Expr
Interface to denote that this expression possibly evaluates to a boolean value.
  • Method Details

    • isBoolean

      default boolean isBoolean()
      Description copied from interface: Expr
      Check if this expression is a boolean expresion.
      Specified by:
      isBoolean in interface Expr
      Returns:
      if it is a boolean expression
    • asBoolean

      default Optional<BooleanExpr> asBoolean()
      Description copied from interface: Expr
      Get this expression as a boolean expression
      Specified by:
      asBoolean in interface Expr
      Returns:
      the expression or Optional.empty() if the type does not match