Package com.microsoft.z3
Class Sort
java.lang.Object
com.microsoft.z3.Z3Object
com.microsoft.z3.AST
com.microsoft.z3.Sort
- All Implemented Interfaces:
Comparable<AST>
- Direct Known Subclasses:
ArithSort,ArraySort,BitVecSort,BoolSort,CharSort,DatatypeSort,EnumSort,FiniteDomainSort,FPRMSort,FPSort,ListSort,RelationSort,ReSort,SeqSort,TupleSort,UninterpretedSort
The Sort class implements type information for ASTs.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEquality operator for objects of type Sort.intgetId()Returns a unique identifier for the sort.getName()The name of the sortThe kind of the sort.inthashCode()Hash code generation for SortstoString()A string representation of the sort.Translates (copies) the sort to the Contextctx.Methods inherited from class com.microsoft.z3.AST
compareTo, getASTKind, getSExpr, isApp, isExpr, isFuncDecl, isQuantifier, isSort, isVarMethods inherited from class com.microsoft.z3.Z3Object
arrayLength, arrayToNative
-
Method Details
-
equals
Equality operator for objects of type Sort. -
hashCode
public int hashCode()Hash code generation for Sorts -
getId
public int getId()Returns a unique identifier for the sort. -
getSortKind
The kind of the sort. -
getName
The name of the sort -
toString
A string representation of the sort. -
translate
Translates (copies) the sort to the Contextctx.- Overrides:
translatein classAST- Parameters:
ctx- A context- Returns:
- A copy of the sort which is associated with
ctx - Throws:
Z3Exception- on error
-