package com.bytedance.ies.nle.editor_jni;

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

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

    static {
        Covode.recordClassIndex(29841);
    }

    public void finalize() {
        delete();
    }

    public NLEResourceNode() {
        this(NLEEditorJniJNI.new_NLEResourceNode());
        MethodCollector.i(13734);
        MethodCollector.o(13734);
    }

    public final String LJFF() {
        MethodCollector.i(12748);
        String NLEResourceNode_getResourceId = NLEEditorJniJNI.NLEResourceNode_getResourceId(this.LIZ, this);
        MethodCollector.o(12748);
        return NLEResourceNode_getResourceId;
    }

    public final boolean LJI() {
        MethodCollector.i(12749);
        boolean NLEResourceNode_hasResourceFile = NLEEditorJniJNI.NLEResourceNode_hasResourceFile(this.LIZ, this);
        MethodCollector.o(12749);
        return NLEResourceNode_hasResourceFile;
    }

    public final String LJII() {
        MethodCollector.i(12751);
        String NLEResourceNode_getResourceFile = NLEEditorJniJNI.NLEResourceNode_getResourceFile(this.LIZ, this);
        MethodCollector.o(12751);
        return NLEResourceNode_getResourceFile;
    }

    public final String LJIIJ() {
        MethodCollector.i(13384);
        String NLEResourceNode_getResourceName = NLEEditorJniJNI.NLEResourceNode_getResourceName(this.LIZ, this);
        MethodCollector.o(13384);
        return NLEResourceNode_getResourceName;
    }

    public final long LJIIJJI() {
        MethodCollector.i(13386);
        long NLEResourceNode_getDuration = NLEEditorJniJNI.NLEResourceNode_getDuration(this.LIZ, this);
        MethodCollector.o(13386);
        return NLEResourceNode_getDuration;
    }

    public final long LJIIL() {
        MethodCollector.i(13731);
        long NLEResourceNode_getWidth = NLEEditorJniJNI.NLEResourceNode_getWidth(this.LIZ, this);
        MethodCollector.o(13731);
        return NLEResourceNode_getWidth;
    }

    public final long LJIILIIL() {
        MethodCollector.i(13733);
        long NLEResourceNode_getHeight = NLEEditorJniJNI.NLEResourceNode_getHeight(this.LIZ, this);
        MethodCollector.o(13733);
        return NLEResourceNode_getHeight;
    }

    public final AnonymousClass500 LJIIIIZZ() {
        MethodCollector.i(12965);
        AnonymousClass500 swigToEnum = AnonymousClass500.swigToEnum(NLEEditorJniJNI.NLEResourceNode_getResourceTag(this.LIZ, this));
        MethodCollector.o(12965);
        return swigToEnum;
    }

    public final AnonymousClass51Z LJIIIZ() {
        MethodCollector.i(12967);
        AnonymousClass51Z swigToEnum = AnonymousClass51Z.swigToEnum(NLEEditorJniJNI.NLEResourceNode_getResourceType(this.LIZ, this));
        MethodCollector.o(12967);
        return swigToEnum;
    }

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

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

    public static long LIZ(NLEResourceNode nLEResourceNode) {
        if (nLEResourceNode == null) {
            return 0;
        }
        return nLEResourceNode.LIZ;
    }

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

    public final void LIZ(long j) {
        MethodCollector.i(13385);
        NLEEditorJniJNI.NLEResourceNode_setDuration(this.LIZ, this, j);
        MethodCollector.o(13385);
    }

    public final void LIZIZ(long j) {
        MethodCollector.i(13730);
        NLEEditorJniJNI.NLEResourceNode_setWidth(this.LIZ, this, j);
        MethodCollector.o(13730);
    }

    public final void LIZJ(long j) {
        MethodCollector.i(13732);
        NLEEditorJniJNI.NLEResourceNode_setHeight(this.LIZ, this, j);
        MethodCollector.o(13732);
    }

    public final void LIZLLL(String str) {
        MethodCollector.i(13175);
        NLEEditorJniJNI.NLEResourceNode_setResourceName(this.LIZ, this, str);
        MethodCollector.o(13175);
    }

    public NLEResourceNode(long j) {
        super(NLEEditorJniJNI.NLEResourceNode_SWIGSmartPtrUpcast(j), true);
        MethodCollector.i(16549);
        this.LIZIZ = true;
        this.LIZ = j;
        MethodCollector.o(16549);
    }

    public final void LIZ(AnonymousClass500 r5) {
        MethodCollector.i(12752);
        NLEEditorJniJNI.NLEResourceNode_setResourceTag(this.LIZ, this, r5.swigValue());
        MethodCollector.o(12752);
    }

    public final void LIZIZ(String str) {
        MethodCollector.i(12487);
        NLEEditorJniJNI.NLEResourceNode_setResourceId(this.LIZ, this, str);
        MethodCollector.o(12487);
    }

    public final void LIZJ(String str) {
        MethodCollector.i(12750);
        NLEEditorJniJNI.NLEResourceNode_setResourceFile(this.LIZ, this, str);
        MethodCollector.o(12750);
    }

    public final void LIZ(AnonymousClass51Z r5) {
        MethodCollector.i(12966);
        NLEEditorJniJNI.NLEResourceNode_setResourceType(this.LIZ, this, r5.swigValue());
        MethodCollector.o(12966);
    }
}
