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 (AST 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 ()
 

Detailed Description

The Sort class implements type information for ASTs.

Definition at line 26 of file Sort.java.

Member Function Documentation

§ equals()

boolean equals ( Object  o)
inline

Equality operator for objects of type Sort.

Definition at line 32 of file Sort.java.

33  {
34  if (o == this) return true;
35  if (!(o instanceof Sort)) return false;
36  Sort other = (Sort) o;
37 
38  return (getContext().nCtx() == other.getContext().nCtx()) &&
39  (Native.isEqSort(
40  getContext().nCtx(),
41  getNativeObject(),
42  other.getNativeObject()
43  ));
44  }

§ getId()

int getId ( )
inline

Returns a unique identifier for the sort.

Definition at line 59 of file Sort.java.

60  {
61  return Native.getSortId(getContext().nCtx(), getNativeObject());
62  }

§ getName()

Symbol getName ( )
inline

The name of the sort

Definition at line 76 of file Sort.java.

77  {
78  return Symbol.create(getContext(),
79  Native.getSortName(getContext().nCtx(), getNativeObject()));
80  }

§ getSortKind()

Z3_sort_kind getSortKind ( )
inline

The kind of the sort.

Definition at line 67 of file Sort.java.

68  {
69  return Z3_sort_kind.fromInt(Native.getSortKind(getContext().nCtx(),
70  getNativeObject()));
71  }
Z3_sort_kind
The different kinds of Z3 types (See #Z3_get_sort_kind).
Definition: z3_api.h:153

§ hashCode()

int hashCode ( )
inline

Hash code generation for Sorts

Returns
A hash code

Definition at line 51 of file Sort.java.

52  {
53  return super.hashCode();
54  }

§ toString()

String toString ( )
inline

A string representation of the sort.

Definition at line 86 of file Sort.java.

86  {
87  return Native.sortToString(getContext().nCtx(), getNativeObject());
88  }