Class ComparisonLt
- java.lang.Object
-
- it.unive.lisa.symbolic.value.operator.binary.NumericComparison
-
- it.unive.lisa.symbolic.value.operator.binary.ComparisonLt
-
- All Implemented Interfaces:
Operator
,BinaryOperator
,ComparisonOperator
,NegatableOperator
public class ComparisonLt extends NumericComparison
Given two expressions that both evaluate to numeric values, aBinaryExpression
using this operator checks if the value of the first argument is less than the value of the second argument.
First argument expression type:NumericType
Second argument expression type:NumericType
Computed expression type:BooleanType
-
-
Field Summary
Fields Modifier and Type Field Description static ComparisonLt
INSTANCE
The singleton instance of this class.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ComparisonLt()
Builds the type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonOperator
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.NumericComparison
typeInference
-
-
-
-
Field Detail
-
INSTANCE
public static final ComparisonLt INSTANCE
The singleton instance of this class.
-
-
Constructor Detail
-
ComparisonLt
protected ComparisonLt()
Builds the type. 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 ComparisonOperator 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
-
-