Package io.github.cvc5
Class DatatypeDecl
- java.lang.Object
-
- io.github.cvc5.DatatypeDecl
-
public class DatatypeDecl extends java.lang.ObjectA cvc5 datatype declaration. A datatype declaration is not itself a datatype (seeDatatype), but a specification for creating a datatype sort. The interface for a datatype declaration coincides with the syntax for the SMT-LIB 2.6 commanddeclare-datatype, or a single datatype within thedeclare-datatypescommand. Datatype sorts can be constructed from DatatypeDecl using the methods: -Solver.mkDatatypeSort(DatatypeDecl)-Solver.mkDatatypeSorts(DatatypeDecl[])
-
-
Field Summary
Fields Modifier and Type Field Description protected longpointer
-
Constructor Summary
Constructors Constructor Description DatatypeDecl()Null datatypeDecl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConstructor(DatatypeConstructorDecl ctor)Add datatype constructor declaration.voiddeletePointer()protected voiddeletePointer(long pointer)java.lang.StringgetName()intgetNumConstructors()Get the number of constructors (so far) for this Datatype declaration.longgetPointer()booleanisNull()booleanisParametric()Determine if this datatype declaration is parametric.java.lang.StringtoString()protected java.lang.StringtoString(long pointer)
-
-
-
Method Detail
-
deletePointer
protected void deletePointer(long pointer)
-
addConstructor
public void addConstructor(DatatypeConstructorDecl ctor)
Add datatype constructor declaration.- Parameters:
ctor- The datatype constructor declaration to add.
-
getNumConstructors
public int getNumConstructors()
Get the number of constructors (so far) for this Datatype declaration.- Returns:
- The number of constructors.
-
isParametric
public boolean isParametric()
Determine if this datatype declaration is parametric.- Returns:
- True if this DatatypeDecl is parametric.
- Note:
- This method is experimental and may change in future versions.
-
isNull
public boolean isNull()
- Returns:
- True if this DatatypeDecl is a null object.
-
toString
protected java.lang.String toString(long pointer)
- Returns:
- A string representation of this datatype declaration.
-
getName
public java.lang.String getName()
- Returns:
- The name of this datatype declaration.
-
getPointer
public long getPointer()
-
deletePointer
public void deletePointer()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-