MCPcopy Create free account
hub / github.com/Z3Prover/z3 / getConsts

Method getConsts

src/api/java/EnumSort.java:53–60  ·  view source on GitHub ↗

The constants in the enumeration. @throws Z3Exception on error @return an Expr[]

()

Source from the content-addressed store, hash-verified

51 * @return an Expr[]
52 **/
53 public Expr<EnumSort<R>>[] getConsts()
54 {
55 FuncDecl<?>[] cds = getConstDecls();
56 Expr<?>[] t = new Expr[cds.length];
57 for (int i = 0; i < t.length; i++)
58 t[i] = getContext().mkApp(cds[i]);
59 return (Expr<EnumSort<R>>[]) t;
60 }
61
62 /**
63 * Retrieves the inx'th constant in the enumeration.

Callers 3

enumExampleMethod · 0.95
enumExampleTypedMethod · 0.80
enumExampleUntypedMethod · 0.80

Calls 3

getConstDeclsMethod · 0.95
mkAppMethod · 0.80
getContextMethod · 0.80

Tested by

no test coverage detected