package com.bytedance.ies.nle.editor_jni;

import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;

public class TemplateInfo extends NLENode {
    public transient long LIZ;
    public transient boolean LIZIZ;

    static {
        Covode.recordClassIndex(29918);
    }

    public void finalize() {
        delete();
    }

    public TemplateInfo() {
        this(NLETemplateJNI.new_TemplateInfo());
        MethodCollector.i(8780);
        MethodCollector.o(8780);
    }

    public NLENode clone() {
        MethodCollector.i(11945);
        long TemplateInfo_clone = NLETemplateJNI.TemplateInfo_clone(this.LIZ, this);
        if (TemplateInfo_clone == 0) {
            MethodCollector.o(11945);
            return null;
        }
        NLENode nLENode = new NLENode(TemplateInfo_clone, true);
        MethodCollector.o(11945);
        return nLENode;
    }

    public synchronized void delete() {
        MethodCollector.i(11725);
        long j = this.LIZ;
        if (j != 0) {
            if (this.LIZIZ) {
                this.LIZIZ = false;
                NLETemplateJNI.delete_TemplateInfo(j);
            }
            this.LIZ = 0;
        }
        super.delete();
        MethodCollector.o(11725);
    }

    public void swigSetCMemOwn(boolean z) {
        this.LIZIZ = z;
        super.swigSetCMemOwn(z);
    }

    public TemplateInfo(long j) {
        super(NLETemplateJNI.TemplateInfo_SWIGSmartPtrUpcast(j), true);
        MethodCollector.i(11723);
        this.LIZIZ = true;
        this.LIZ = j;
        MethodCollector.o(11723);
    }
}
