/* ###
 * IP: Apache License 2.0 with LLVM Exceptions
 */
/* ----------------------------------------------------------------------------
 * 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 SWIG;

public class SBModuleSpec {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected SBModuleSpec(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(SBModuleSpec obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        lldbJNI.delete_SBModuleSpec(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public SBModuleSpec() {
    this(lldbJNI.new_SBModuleSpec__SWIG_0(), true);
  }

  public SBModuleSpec(SBModuleSpec rhs) {
    this(lldbJNI.new_SBModuleSpec__SWIG_1(SBModuleSpec.getCPtr(rhs), rhs), true);
  }

  public boolean IsValid() {
    return lldbJNI.SBModuleSpec_IsValid(swigCPtr, this);
  }

  public void Clear() {
    lldbJNI.SBModuleSpec_Clear(swigCPtr, this);
  }

  public SBFileSpec GetFileSpec() {
    return new SBFileSpec(lldbJNI.SBModuleSpec_GetFileSpec(swigCPtr, this), true);
  }

  public void SetFileSpec(SBFileSpec fspec) {
    lldbJNI.SBModuleSpec_SetFileSpec(swigCPtr, this, SBFileSpec.getCPtr(fspec), fspec);
  }

  public SBFileSpec GetPlatformFileSpec() {
    return new SBFileSpec(lldbJNI.SBModuleSpec_GetPlatformFileSpec(swigCPtr, this), true);
  }

  public void SetPlatformFileSpec(SBFileSpec fspec) {
    lldbJNI.SBModuleSpec_SetPlatformFileSpec(swigCPtr, this, SBFileSpec.getCPtr(fspec), fspec);
  }

  public SBFileSpec GetSymbolFileSpec() {
    return new SBFileSpec(lldbJNI.SBModuleSpec_GetSymbolFileSpec(swigCPtr, this), true);
  }

  public void SetSymbolFileSpec(SBFileSpec fspec) {
    lldbJNI.SBModuleSpec_SetSymbolFileSpec(swigCPtr, this, SBFileSpec.getCPtr(fspec), fspec);
  }

  public String GetObjectName() {
    return lldbJNI.SBModuleSpec_GetObjectName(swigCPtr, this);
  }

  public void SetObjectName(String name) {
    lldbJNI.SBModuleSpec_SetObjectName(swigCPtr, this, name);
  }

  public String GetTriple() {
    return lldbJNI.SBModuleSpec_GetTriple(swigCPtr, this);
  }

  public void SetTriple(String triple) {
    lldbJNI.SBModuleSpec_SetTriple(swigCPtr, this, triple);
  }

  public SWIGTYPE_p_unsigned_char GetUUIDBytes() {
    long cPtr = lldbJNI.SBModuleSpec_GetUUIDBytes(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
  }

  public long GetUUIDLength() {
    return lldbJNI.SBModuleSpec_GetUUIDLength(swigCPtr, this);
  }

  public boolean SetUUIDBytes(SWIGTYPE_p_unsigned_char uuid, long uuid_len) {
    return lldbJNI.SBModuleSpec_SetUUIDBytes(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(uuid), uuid_len);
  }

  public boolean GetDescription(SBStream description) {
    return lldbJNI.SBModuleSpec_GetDescription(swigCPtr, this, SBStream.getCPtr(description), description);
  }

  public String __repr__() {
    return lldbJNI.SBModuleSpec___repr__(swigCPtr, this);
  }

}
