Interface ToBooleanExpression
- All Superinterfaces:
Expression
- All Known Implementing Classes:
AbstractBinaryToBooleanExpression
,AbstractToBooleanExpression
,AbstractUnaryToBooleanExpression
,ToBooleanExpression.ConstantToBooleanExpression
Expression Interface to turn an expression into a boolean value.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Pre-made class that can be used through theliteral method
of the ToBooleanExpression interface. -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate()
Method used to return a boolean value.static ToBooleanExpression
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
Creates a new ToBooleanExpression instance containing the provided boolean value.- Parameters:
value
- The boolean value for the ToBooleanExpression to hold.- Returns:
- New ToBooleanExpression instance.
-