mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
90 lines
2.4 KiB
Java
90 lines
2.4 KiB
Java
/* ###
|
|
* 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 SBEnvironment {
|
|
private transient long swigCPtr;
|
|
protected transient boolean swigCMemOwn;
|
|
|
|
protected SBEnvironment(long cPtr, boolean cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(SBEnvironment 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_SBEnvironment(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
}
|
|
}
|
|
|
|
public SBEnvironment() {
|
|
this(lldbJNI.new_SBEnvironment__SWIG_0(), true);
|
|
}
|
|
|
|
public SBEnvironment(SBEnvironment rhs) {
|
|
this(lldbJNI.new_SBEnvironment__SWIG_1(SBEnvironment.getCPtr(rhs), rhs), true);
|
|
}
|
|
|
|
public long GetNumValues() {
|
|
return lldbJNI.SBEnvironment_GetNumValues(swigCPtr, this);
|
|
}
|
|
|
|
public String Get(String name) {
|
|
return lldbJNI.SBEnvironment_Get(swigCPtr, this, name);
|
|
}
|
|
|
|
public String GetNameAtIndex(long index) {
|
|
return lldbJNI.SBEnvironment_GetNameAtIndex(swigCPtr, this, index);
|
|
}
|
|
|
|
public String GetValueAtIndex(long index) {
|
|
return lldbJNI.SBEnvironment_GetValueAtIndex(swigCPtr, this, index);
|
|
}
|
|
|
|
public SBStringList GetEntries() {
|
|
return new SBStringList(lldbJNI.SBEnvironment_GetEntries(swigCPtr, this), true);
|
|
}
|
|
|
|
public void PutEntry(String name_and_value) {
|
|
lldbJNI.SBEnvironment_PutEntry(swigCPtr, this, name_and_value);
|
|
}
|
|
|
|
public void SetEntries(SBStringList entries, boolean append) {
|
|
lldbJNI.SBEnvironment_SetEntries(swigCPtr, this, SBStringList.getCPtr(entries), entries, append);
|
|
}
|
|
|
|
public boolean Set(String name, String value, boolean overwrite) {
|
|
return lldbJNI.SBEnvironment_Set(swigCPtr, this, name, value, overwrite);
|
|
}
|
|
|
|
public boolean Unset(String name) {
|
|
return lldbJNI.SBEnvironment_Unset(swigCPtr, this, name);
|
|
}
|
|
|
|
public void Clear() {
|
|
lldbJNI.SBEnvironment_Clear(swigCPtr, this);
|
|
}
|
|
|
|
}
|