3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-30 04:15:51 +00:00

Java API: syntactic adjustments, getters, setters,

... convenience parameters, etc.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2013-01-17 19:31:02 +00:00
parent 3abf397560
commit 4b18c8f9c4
63 changed files with 2939 additions and 2985 deletions

View file

@ -15,9 +15,9 @@ public class Pattern extends AST
/**
* The number of terms in the pattern.
**/
public int NumTerms() throws Z3Exception
public int getNumTerms() throws Z3Exception
{
return Native.getPatternNumTerms(Context().nCtx(), NativeObject());
return Native.getPatternNumTerms(getContext().nCtx(), getNativeObject());
}
/**
@ -25,14 +25,14 @@ public class Pattern extends AST
*
* @throws Z3Exception
**/
public Expr[] Terms() throws Z3Exception
public Expr[] getTerms() throws Z3Exception
{
int n = NumTerms();
int n = getNumTerms();
Expr[] res = new Expr[n];
for (int i = 0; i < n; i++)
res[i] = Expr.Create(Context(),
Native.getPattern(Context().nCtx(), NativeObject(), i));
res[i] = Expr.create(getContext(),
Native.getPattern(getContext().nCtx(), getNativeObject(), i));
return res;
}
@ -43,7 +43,7 @@ public class Pattern extends AST
{
try
{
return Native.patternToString(Context().nCtx(), NativeObject());
return Native.patternToString(getContext().nCtx(), getNativeObject());
} catch (Z3Exception e)
{
return "Z3Exception: " + e.getMessage();