Class StringEquals
- java.lang.Object
-
- it.unive.lisa.symbolic.value.operator.binary.StringEquals
-
- All Implemented Interfaces:
Operator,BinaryOperator,StringOperator
public class StringEquals extends java.lang.Object implements StringOperator, BinaryOperator
Given two expressions that both evaluate to string values, aBinaryExpressionusing this operator checks if the string from the first argument is equal (in terms of contents, that is different fromComparisonEq) to the one of the second argument.
First argument expression type:StringType
Second argument expression type:StringType
Computed expression type:BooleanType
-
-
Field Summary
Fields Modifier and Type Field Description static StringEqualsINSTANCEThe singleton instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()ExternalSet<Type>typeInference(ExternalSet<Type> left, ExternalSet<Type> right)Computes the runtime types of this expression (i.e., of the result of this expression) assuming that the arguments of this expression have the given types.
-
-
-
Field Detail
-
INSTANCE
public static final StringEquals INSTANCE
The singleton instance of this class.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
typeInference
public ExternalSet<Type> typeInference(ExternalSet<Type> left, ExternalSet<Type> right)
Description copied from interface:BinaryOperatorComputes the runtime types of this expression (i.e., of the result of this expression) assuming that the arguments of this expression have the given types.- Specified by:
typeInferencein interfaceBinaryOperator- Parameters:
left- the set of types of the left-most argument of this expressionright- the set of types of the right-most argument of this expression- Returns:
- the runtime types of this expression
-
-