edu.nyu.acsys.CVC4.ConstructorType Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.1
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package edu.nyu.acsys.CVC4;
public class ConstructorType extends Type {
private transient long swigCPtr;
protected ConstructorType(long cPtr, boolean cMemoryOwn) {
super(CVC4JNI.ConstructorType_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(ConstructorType obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
CVC4JNI.delete_ConstructorType(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public ConstructorType(Type type) {
this(CVC4JNI.new_ConstructorType__SWIG_0(Type.getCPtr(type), type), true);
}
public ConstructorType() {
this(CVC4JNI.new_ConstructorType__SWIG_1(), true);
}
public DatatypeType getRangeType() {
return new DatatypeType(CVC4JNI.ConstructorType_getRangeType(swigCPtr, this), true);
}
public vectorType getArgTypes() {
return new vectorType(CVC4JNI.ConstructorType_getArgTypes(swigCPtr, this), true);
}
public long getArity() {
return CVC4JNI.ConstructorType_getArity(swigCPtr, this);
}
}