Class LogicalNegation

    • Field Detail

      • INSTANCE

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

      • LogicalNegation

        protected LogicalNegation()
        Builds the type. 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> argument)
        Description copied from interface: UnaryOperator
        Computes the runtime types of this expression (i.e., of the result of this expression) assuming that the argument of this expression has the given types.
        Specified by:
        typeInference in interface UnaryOperator
        Parameters:
        types - the type system knowing about the types of the current program
        argument - the set of types of the argument of this expression
        Returns:
        the runtime types of this expression