Class LogicalAnd
- java.lang.Object
-
- it.unive.lisa.symbolic.value.operator.binary.LogicalOperation
-
- it.unive.lisa.symbolic.value.operator.binary.LogicalAnd
-
- All Implemented Interfaces:
Operator
,BinaryOperator
,LogicalOperator
,NegatableOperator
public class LogicalAnd extends LogicalOperation
Given two expressions that both evaluate to Boolean values, aBinaryExpression
using this operator computes the logical conjunction of those values, without short-circuiting.
First argument expression type:BooleanType
Second argument expression type:BooleanType
Computed expression type:BooleanType
-
-
Field Summary
Fields Modifier and Type Field Description static LogicalAnd
INSTANCE
The singleton instance of this class.
-
Constructor Summary
Constructors Modifier Constructor Description protected
LogicalAnd()
Builds the operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogicalOperator
opposite()
Yields the opposite operator of this operator (e.g.,ComparisonLe
toComparisonGt
,ComparisonLt
toComparisonGe
).java.lang.String
toString()
-
Methods inherited from class it.unive.lisa.symbolic.value.operator.binary.LogicalOperation
typeInference
-
-
-
-
Field Detail
-
INSTANCE
public static final LogicalAnd INSTANCE
The singleton instance of this class.
-
-
Constructor Detail
-
LogicalAnd
protected LogicalAnd()
Builds the operator. This constructor is visible to allow subclassing: instances of this class should be unique, and the singleton can be retrieved through fieldINSTANCE
.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
opposite
public LogicalOperator opposite()
Description copied from interface:NegatableOperator
Yields the opposite operator of this operator (e.g.,ComparisonLe
toComparisonGt
,ComparisonLt
toComparisonGe
).- Returns:
- the opposite operator of this operator
-
-