Class InfixType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<InfixType>

    public class InfixType
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<InfixType>
    An infix type application
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.haskell.syntax.InfixType type.
      • LHS

        public static final Name LHS
        Name of the hydra.haskell.syntax.InfixType.lhs field.
      • OPERATOR

        public static final Name OPERATOR
        Name of the hydra.haskell.syntax.InfixType.operator field.
      • RHS

        public static final Name RHS
        Name of the hydra.haskell.syntax.InfixType.rhs field.
      • lhs

        public final Type lhs
        The left-hand type
      • operator

        public final Operator operator
        The type operator
      • rhs

        public final Type rhs
        The right-hand type
    • Constructor Detail

      • InfixType

        public InfixType​(Type lhs,
                         Operator operator,
                         Type rhs)
        Constructs an immutable InfixType.
        Parameters:
        lhs - The left-hand type
        operator - The type operator
        rhs - The right-hand type
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public int compareTo​(InfixType other)
        Specified by:
        compareTo in interface java.lang.Comparable<InfixType>