Class Sort

    • Method Detail

      • equals

        public boolean equals​(Object o)
        Equality operator for objects of type Sort.
        Overrides:
        equals in class AST
        Parameters:
        o - another AST
      • hashCode

        public int hashCode()
        Hash code generation for Sorts
        Overrides:
        hashCode in class AST
        Returns:
        A hash code
      • getId

        public int getId()
        Returns a unique identifier for the sort.
        Overrides:
        getId in class AST
      • getSortKind

        public Z3_sort_kind getSortKind()
        The kind of the sort.
      • getName

        public Symbol getName()
        The name of the sort
      • toString

        public String toString()
        A string representation of the sort.
        Overrides:
        toString in class AST
      • translate

        public Sort translate​(Context ctx)
        Translates (copies) the sort to the Context ctx.
        Overrides:
        translate in class AST
        Parameters:
        ctx - A context
        Returns:
        A copy of the sort which is associated with ctx
        Throws:
        Z3Exception - on error