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,DatatypeSort,EnumSort,FiniteDomainSort,FPRMSort,FPSort,ListSort,RelationSort,ReSort,SeqSort,SetSort,TupleSort,UninterpretedSort
public class Sort extends AST
The Sort class implements type information for ASTs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Equality operator for objects of type Sort.intgetId()Returns a unique identifier for the sort.SymbolgetName()The name of the sortZ3_sort_kindgetSortKind()The kind of the sort.inthashCode()Hash code generation for SortsStringtoString()A string representation of the sort.Sorttranslate(Context ctx)Translates (copies) the sort to the Contextctx.-
Methods inherited from class com.microsoft.z3.AST
compareTo, getASTKind, getSExpr, isApp, isExpr, isFuncDecl, isQuantifier, isSort, isVar
-
Methods inherited from class com.microsoft.z3.Z3Object
arrayLength, arrayToNative
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
Equality operator for objects of type Sort.
-
hashCode
public int hashCode()
Hash code generation for Sorts
-
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.
-
translate
public Sort translate(Context ctx)
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
-
-