Package com.microsoft.z3
Class EnumSort
- java.lang.Object
-
- com.microsoft.z3.Z3Object
-
- com.microsoft.z3.AST
-
- com.microsoft.z3.Sort
-
- com.microsoft.z3.EnumSort
-
- All Implemented Interfaces:
Comparable<AST>
public class EnumSort extends Sort
Enumeration sorts.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExprgetConst(int inx)Retrieves the inx'th constant in the enumeration.FuncDeclgetConstDecl(int inx)Retrieves the inx'th constant declaration in the enumeration.FuncDecl[]getConstDecls()The function declarations of the constants in the enumeration.Expr[]getConsts()The constants in the enumeration.FuncDeclgetTesterDecl(int inx)Retrieves the inx'th tester/recognizer declaration in the enumeration.FuncDecl[]getTesterDecls()The test predicates for the constants in the enumeration.-
Methods inherited from class com.microsoft.z3.Sort
equals, getId, getName, getSortKind, hashCode, toString, translate
-
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
-
getConstDecls
public FuncDecl[] getConstDecls()
The function declarations of the constants in the enumeration.- Throws:
Z3Exception- on error
-
getConstDecl
public FuncDecl getConstDecl(int inx)
Retrieves the inx'th constant declaration in the enumeration.- Throws:
Z3Exception- on error
-
getConsts
public Expr[] getConsts()
The constants in the enumeration.- Returns:
- an Expr[]
- Throws:
Z3Exception- on error
-
getConst
public Expr getConst(int inx)
Retrieves the inx'th constant in the enumeration.- Returns:
- an Expr
- Throws:
Z3Exception- on error
-
getTesterDecls
public FuncDecl[] getTesterDecls()
The test predicates for the constants in the enumeration.- Throws:
Z3Exception- on error
-
getTesterDecl
public FuncDecl getTesterDecl(int inx)
Retrieves the inx'th tester/recognizer declaration in the enumeration.- Throws:
Z3Exception- on error
-
-