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

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

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

  public SBAddress() {
    this(lldbJNI.new_SBAddress__SWIG_0(), true);
  }

  public SBAddress(SBAddress rhs) {
    this(lldbJNI.new_SBAddress__SWIG_1(SBAddress.getCPtr(rhs), rhs), true);
  }

  public SBAddress(SBSection section, java.math.BigInteger offset) {
    this(lldbJNI.new_SBAddress__SWIG_2(SBSection.getCPtr(section), section, offset), true);
  }

  public SBAddress(java.math.BigInteger load_addr, SBTarget target) {
    this(lldbJNI.new_SBAddress__SWIG_3(load_addr, SBTarget.getCPtr(target), target), true);
  }

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

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

  public java.math.BigInteger GetFileAddress() {
    return lldbJNI.SBAddress_GetFileAddress(swigCPtr, this);
  }

  public java.math.BigInteger GetLoadAddress(SBTarget target) {
    return lldbJNI.SBAddress_GetLoadAddress(swigCPtr, this, SBTarget.getCPtr(target), target);
  }

  public void SetLoadAddress(java.math.BigInteger load_addr, SBTarget target) {
    lldbJNI.SBAddress_SetLoadAddress(swigCPtr, this, load_addr, SBTarget.getCPtr(target), target);
  }

  public boolean OffsetAddress(java.math.BigInteger offset) {
    return lldbJNI.SBAddress_OffsetAddress(swigCPtr, this, offset);
  }

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

  public SBSection GetSection() {
    return new SBSection(lldbJNI.SBAddress_GetSection(swigCPtr, this), true);
  }

  public java.math.BigInteger GetOffset() {
    return lldbJNI.SBAddress_GetOffset(swigCPtr, this);
  }

  public void SetAddress(SBSection section, java.math.BigInteger offset) {
    lldbJNI.SBAddress_SetAddress(swigCPtr, this, SBSection.getCPtr(section), section, offset);
  }

  public SBSymbolContext GetSymbolContext(long resolve_scope) {
    return new SBSymbolContext(lldbJNI.SBAddress_GetSymbolContext(swigCPtr, this, resolve_scope), true);
  }

  public SBModule GetModule() {
    return new SBModule(lldbJNI.SBAddress_GetModule(swigCPtr, this), true);
  }

  public SBCompileUnit GetCompileUnit() {
    return new SBCompileUnit(lldbJNI.SBAddress_GetCompileUnit(swigCPtr, this), true);
  }

  public SBFunction GetFunction() {
    return new SBFunction(lldbJNI.SBAddress_GetFunction(swigCPtr, this), true);
  }

  public SBBlock GetBlock() {
    return new SBBlock(lldbJNI.SBAddress_GetBlock(swigCPtr, this), true);
  }

  public SBSymbol GetSymbol() {
    return new SBSymbol(lldbJNI.SBAddress_GetSymbol(swigCPtr, this), true);
  }

  public SBLineEntry GetLineEntry() {
    return new SBLineEntry(lldbJNI.SBAddress_GetLineEntry(swigCPtr, this), true);
  }

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

}
