Class ComparisonNe

    • Field Detail

      • INSTANCE

        public static final ComparisonNe INSTANCE
        The singleton instance of this class.
    • Constructor Detail

      • ComparisonNe

        protected ComparisonNe()
        Builds the operator. This constructor is visible to allow subclassing: instances of this class should be unique, and the singleton can be retrieved through field INSTANCE.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • typeInference

        public java.util.Set<Type> typeInference​(TypeSystem types,
                                                 java.util.Set<Type> left,
                                                 java.util.Set<Type> right)
        Description copied from interface: BinaryOperator
        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.
        Specified by:
        typeInference in interface BinaryOperator
        Parameters:
        types - the type system knowing about the types of the current program
        left - the set of types of the left-most argument of this expression
        right - the set of types of the right-most argument of this expression
        Returns:
        the runtime types of this expression