Class LogicalOr
- java.lang.Object
-
- it.unive.lisa.symbolic.value.operator.binary.LogicalOperation
-
- it.unive.lisa.symbolic.value.operator.binary.LogicalOr
-
- All Implemented Interfaces:
Operator
,BinaryOperator
,LogicalOperator
,NegatableOperator
public class LogicalOr extends LogicalOperation
Given two expressions that both evaluate to Boolean values, aBinaryExpression
using this operator computes the logical disjunction of those values, without short-circuiting.
First argument expression type:BooleanType
Second argument expression type:BooleanType
Computed expression type:BooleanType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LogicalOr()
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 LogicalOr INSTANCE
The singleton instance of this class.
-
-
Constructor Detail
-
LogicalOr
protected LogicalOr()
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
-
-