Package io.github.cvc5
Class DatatypeConstructorDecl
- java.lang.Object
-
- io.github.cvc5.DatatypeConstructorDecl
-
public class DatatypeConstructorDecl extends java.lang.ObjectA cvc5 datatype constructor declaration. A datatype constructor declaration is a specification used for creating a datatype constructor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSelector(java.lang.String name, Sort sort)Add datatype selector declaration.voidaddSelectorSelf(java.lang.String name)Add datatype selector declaration whose codomain type is the datatype itself.voidaddSelectorUnresolved(java.lang.String name, java.lang.String unresDataypeName)Add datatype selector declaration whose codomain sort is an unresolved datatype with the given name.protected voiddeletePointer(long pointer)longgetPointer()SolvergetSolver()booleanisNull()java.lang.StringtoString()protected java.lang.StringtoString(long pointer)
-
-
-
Field Detail
-
solver
protected final Solver solver
-
pointer
protected long pointer
-
-
Method Detail
-
deletePointer
protected void deletePointer(long pointer)
-
getPointer
public long getPointer()
-
addSelector
public void addSelector(java.lang.String name, Sort sort)Add datatype selector declaration.- Parameters:
name- The name of the datatype selector declaration to add.sort- The codomain sort of the datatype selector declaration to add.
-
addSelectorSelf
public void addSelectorSelf(java.lang.String name)
Add datatype selector declaration whose codomain type is the datatype itself.- Parameters:
name- The name of the datatype selector declaration to add.
-
addSelectorUnresolved
public void addSelectorUnresolved(java.lang.String name, java.lang.String unresDataypeName)Add datatype selector declaration whose codomain sort is an unresolved datatype with the given name.- Parameters:
name- The name of the datatype selector declaration to add.unresDataypeName- The name of the unresolved datatype. The codomain of the selector will be the resolved datatype with the given name.
-
isNull
public boolean isNull()
- Returns:
- True If this DatatypeConstructorDecl is a null declaration.
-
toString
protected java.lang.String toString(long pointer)
- Returns:
- A String representation of this datatype constructor declaration
-
getSolver
public Solver getSolver()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-