Z3
Public Member Functions
Sort Class Reference
+ Inheritance diagram for Sort:

Public Member Functions

boolean equals (Object o)
 
int hashCode ()
 
int getId ()
 
Z3_sort_kind getSortKind ()
 
Symbol getName ()
 
String toString ()
 
- Public Member Functions inherited from AST
boolean equals (Object o)
 
int compareTo (Object other)
 
int hashCode ()
 
int getId ()
 
AST translate (Context ctx)
 
Z3_ast_kind getASTKind ()
 
boolean isExpr ()
 
boolean isApp ()
 
boolean isVar ()
 
boolean isQuantifier ()
 
boolean isSort ()
 
boolean isFuncDecl ()
 
String toString ()
 
String getSExpr ()
 
- Public Member Functions inherited from Z3Object
void dispose ()
 
- Public Member Functions inherited from IDisposable
void dispose ()
 

Additional Inherited Members

- Protected Member Functions inherited from Z3Object
void finalize ()
 

Detailed Description

The Sort class implements type information for ASTs.

Definition at line 26 of file Sort.java.

Member Function Documentation

boolean equals ( Object  o)
inline

Equality operator for objects of type Sort.

Parameters
o
Returns

Definition at line 35 of file Sort.java.

36  {
37  Sort casted = null;
38 
39  try {
40  casted = Sort.class.cast(o);
41  } catch (ClassCastException e) {
42  return false;
43  }
44 
45  return this.getNativeObject() == casted.getNativeObject();
46  }
int getId ( )
inline

Returns a unique identifier for the sort.

Definition at line 61 of file Sort.java.

62  {
63  return Native.getSortId(getContext().nCtx(), getNativeObject());
64  }
Symbol getName ( )
inline

The name of the sort

Definition at line 78 of file Sort.java.

79  {
80  return Symbol.create(getContext(),
81  Native.getSortName(getContext().nCtx(), getNativeObject()));
82  }
Z3_sort_kind getSortKind ( )
inline

The kind of the sort.

Definition at line 69 of file Sort.java.

70  {
71  return Z3_sort_kind.fromInt(Native.getSortKind(getContext().nCtx(),
72  getNativeObject()));
73  }
Z3_sort_kind
The different kinds of Z3 types (See Z3_get_sort_kind).
Definition: z3_api.h:186
int hashCode ( )
inline

Hash code generation for Sorts

Returns
A hash code

Definition at line 53 of file Sort.java.

54  {
55  return super.hashCode();
56  }
String toString ( )
inline

A string representation of the sort.

Definition at line 87 of file Sort.java.

88  {
89  try
90  {
91  return Native.sortToString(getContext().nCtx(), getNativeObject());
92  } catch (Z3Exception e)
93  {
94  return "Z3Exception: " + e.getMessage();
95  }
96  }