3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00

Java API: Added exception wrappers and build dependencies.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2012-11-30 15:39:25 +00:00
parent 654c02701c
commit 0c1f2a8281
47 changed files with 4908 additions and 4554 deletions

View file

@ -16,7 +16,7 @@ public class Symbol extends Z3Object
/**
* The kind of the symbol (int or string)
**/
protected Z3_symbol_kind Kind()
protected Z3_symbol_kind Kind() throws Z3Exception
{
return Z3_symbol_kind.fromInt(Native.getSymbolKind(Context().nCtx(),
NativeObject()));
@ -25,7 +25,7 @@ public class Symbol extends Z3Object
/**
* Indicates whether the symbol is of Int kind
**/
public boolean IsIntSymbol()
public boolean IsIntSymbol() throws Z3Exception
{
return Kind() == Z3_symbol_kind.Z3_INT_SYMBOL;
}
@ -33,7 +33,7 @@ public class Symbol extends Z3Object
/**
* Indicates whether the symbol is of string kind.
**/
public boolean IsStringSymbol()
public boolean IsStringSymbol() throws Z3Exception
{
return Kind() == Z3_symbol_kind.Z3_STRING_SYMBOL;
}