edu.nyu.acsys.CVC4.SetInfoCommand 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 SetInfoCommand extends Command {
private transient long swigCPtr;
protected SetInfoCommand(long cPtr, boolean cMemoryOwn) {
super(CVC4JNI.SetInfoCommand_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(SetInfoCommand 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_SetInfoCommand(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public SetInfoCommand(String flag, SExpr sexpr) {
this(CVC4JNI.new_SetInfoCommand(flag, SExpr.getCPtr(sexpr), sexpr), true);
}
public String getFlag() {
return CVC4JNI.SetInfoCommand_getFlag(swigCPtr, this);
}
public SExpr getSExpr() {
return new SExpr(CVC4JNI.SetInfoCommand_getSExpr(swigCPtr, this), true);
}
public void invoke(SmtEngine smtEngine) {
CVC4JNI.SetInfoCommand_invoke(swigCPtr, this, SmtEngine.getCPtr(smtEngine), smtEngine);
}
public Command exportTo(ExprManager exprManager, ExprManagerMapCollection variableMap) {
long cPtr = CVC4JNI.SetInfoCommand_exportTo(swigCPtr, this, ExprManager.getCPtr(exprManager), exprManager, ExprManagerMapCollection.getCPtr(variableMap), variableMap);
return (cPtr == 0) ? null : new Command(cPtr, false);
}
public Command clone() {
long cPtr = CVC4JNI.SetInfoCommand_clone(swigCPtr, this);
return (cPtr == 0) ? null : new Command(cPtr, false);
}
public String getCommandName() {
return CVC4JNI.SetInfoCommand_getCommandName(swigCPtr, this);
}
}