/* ###
 * 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 SBExecutionContext {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

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

  protected static long getCPtr(SBExecutionContext 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_SBExecutionContext(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public SBExecutionContext() {
    this(lldbJNI.new_SBExecutionContext__SWIG_0(), true);
  }

  public SBExecutionContext(SBExecutionContext rhs) {
    this(lldbJNI.new_SBExecutionContext__SWIG_1(SBExecutionContext.getCPtr(rhs), rhs), true);
  }

  public SBExecutionContext(SBTarget target) {
    this(lldbJNI.new_SBExecutionContext__SWIG_2(SBTarget.getCPtr(target), target), true);
  }

  public SBExecutionContext(SBProcess process) {
    this(lldbJNI.new_SBExecutionContext__SWIG_3(SBProcess.getCPtr(process), process), true);
  }

  public SBExecutionContext(SBThread thread) {
    this(lldbJNI.new_SBExecutionContext__SWIG_4(SBThread.getCPtr(thread), thread), true);
  }

  public SBExecutionContext(SBFrame frame) {
    this(lldbJNI.new_SBExecutionContext__SWIG_5(SBFrame.getCPtr(frame), frame), true);
  }

  public SBTarget GetTarget() {
    return new SBTarget(lldbJNI.SBExecutionContext_GetTarget(swigCPtr, this), true);
  }

  public SBProcess GetProcess() {
    return new SBProcess(lldbJNI.SBExecutionContext_GetProcess(swigCPtr, this), true);
  }

  public SBThread GetThread() {
    return new SBThread(lldbJNI.SBExecutionContext_GetThread(swigCPtr, this), true);
  }

  public SBFrame GetFrame() {
    return new SBFrame(lldbJNI.SBExecutionContext_GetFrame(swigCPtr, this), true);
  }

}
