/**
* Get the constructor term of this datatype constructor whose return
- * type is retSort. This method is intended to be used on constructors of
- * parametric datatypes and can be seen as returning the constructor
- * term that has been explicitly cast to the given sort.
+ * type is `retSort`.
+ *
+ * This method is intended to be used on constructors of parametric datatypes
+ * and can be seen as returning the constructor term that has been explicitly
+ * cast to the given sort.
*
* This method is required for constructors of parametric datatypes whose
* return type cannot be determined by type inference. For example, given:
* \endverbatim
*
* This method is equivalent of applying the above, where this
- * DatatypeConstructor is the one corresponding to nil, and retSort is
+ * DatatypeConstructor is the one corresponding to `nil`, and `retSort` is
* `(List Int)`.
*
- * @note the returned constructor term `t` is the constructor, while
- * `Solver::mkTerm(APPLY_CONSTRUCTOR, {t})` is used to construct the
- * above (nullary) application of nil.
+ * @note The returned constructor term `t` is used to construct the above
+ * (nullary) application of `nil` with
+ * `Solver::mkTerm(APPLY_CONSTRUCTOR, {t})`.
*
* @warning This method is experimental and may change in future versions.
*
// endregion
- /** @return the name of this Datatype constructor. */
+ /** @return The name of this Datatype constructor. */
public String getName()
{
return getName(pointer);
* Get the constructor term of this datatype constructor.
*
* Datatype constructors are a special class of function-like terms whose sort
- * is datatype constructor ({@link Sort#isDatatypeConstructor()}). All datatype
- * constructors, including nullary ones, should be used as the
- * first argument to Terms whose kind is APPLY_CONSTRUCTOR. For example,
- * the nil list is represented by the term (APPLY_CONSTRUCTOR nil), where
- * nil is the term returned by this method.
+ * is datatype constructor ({@link Sort#isDatatypeConstructor()}). All
+ * datatype constructors, including nullary ones, should be used as the
+ * first argument to Terms whose kind is {@link Kind#APPLY_CONSTRUCTOR}.
+ * For example, the nil list is represented by the term
+ * {@code (APPLY_CONSTRUCTOR nil)}, where {@code nil} is the term returned by
+ * this method.
*
* @api.note This method should not be used for parametric datatypes. Instead,
- * use the method {@link DatatypeConstructor#getInstantiatedTerm(Sort)} below.
+ * use method
+ * {@link DatatypeConstructor#getInstantiatedTerm(Sort)} below.
*
- * @return the constructor term
+ * @return The constructor term.
*/
public Term getTerm()
{
/**
* Get the constructor term of this datatype constructor whose return
- * type is retSort. This method is intended to be used on constructors of
- * parametric datatypes and can be seen as returning the constructor
- * term that has been explicitly cast to the given sort.
+ * type is {@code retSort}.
+ *
+ * This method is intended to be used on constructors of parametric datatypes
+ * and can be seen as returning the constructor term that has been explicitly
+ * cast to the given sort.
*
* This method is required for constructors of parametric datatypes whose
* return type cannot be determined by type inference. For example, given:
- * (declare-datatype List (par (T) ((nil) (cons (head T) (tail (List T))))))
+ * {@code (declare-datatype List (par (T) ((nil) (cons (head T)
+ * (tail (List T))))))}
* The type of nil terms need to be provided by the user. In SMT version 2.6,
* this is done via the syntax for qualified identifiers:
- * (as nil (List Int))
+ * {@code (as nil (List Int))}
* This method is equivalent of applying the above, where this
- * DatatypeConstructor is the one corresponding to nil, and retSort is
- * (List Int).
+ * DatatypeConstructor is the one corresponding to {@code nil}, and
+ * {@code retSort} is {@code (List Int)}.
*
- * Furthermore note that the returned constructor term t is the constructor,
- * while Solver::mkTerm(APPLY_CONSTRUCTOR, t) is used to construct the above
- * (nullary) application of nil.
+ * @api.note The returned constructor term {@code t} is used to construct the
+ * above (nullary) application of {@code nil} with
+ * {@code Solver.mkTerm(APPLY_CONSTRUCTOR, new Term[] {t})}.
*
* @api.note This method is experimental and may change in future versions.
*
- * @param retSort the desired return sort of the constructor
- * @return the constructor term
+ * @param retSort The desired return sort of the constructor.
+ * @return The constructor term.
*/
public Term getInstantiatedTerm(Sort retSort)
{
* Get the tester term of this datatype constructor.
*
* Similar to constructors, testers are a class of function-like terms of
- * tester sort ({@link Sort#isDatatypeTester()}), and should be used as the first
- * argument of Terms of kind APPLY_TESTER.
+ * tester sort ({@link Sort#isDatatypeTester()}), and should be used as the
+ * first argument of Terms of kind {@link Kind#APPLY_TESTER}.
*
- * @return the tester term
+ * @return The tester term.
*/
public Term getTesterTerm()
{
private native long getTesterTerm(long pointer);
/**
- * @return the number of selectors (so far) of this Datatype constructor.
+ * @return The number of selectors (so far) of this Datatype constructor.
*/
public int getNumSelectors()
{
/**
* Get the DatatypeSelector at the given index
- * @param index the given index i
- * @return the i^th DatatypeSelector
+ * @param index The given index i.
+ * @return The i^th DatatypeSelector.
*/
public DatatypeSelector getSelector(int index)
{
* Get the datatype selector with the given name.
* This is a linear search through the selectors, so in case of
* multiple, similarly-named selectors, the first is returned.
- * @param name the name of the datatype selector
- * @return the first datatype selector with the given name
+ * @param name The name of the datatype selector.
+ * @return The first datatype selector with the given name.
*/
public DatatypeSelector getSelector(String name)
{
private native long getSelector(long pointer, String name);
/**
- * @return true if this DatatypeConstructor is a null object
+ * @return True if this DatatypeConstructor is a null object.
*/
public boolean isNull()
{
private native boolean isNull(long pointer);
/**
- * @return a string representation of this datatype constructor
+ * @return A string representation of this datatype constructor.
*/
protected native String toString(long pointer);