[−]Struct jni_android_sys::org::json::JSONObject
public class JSONObject
Required feature: "org-json-JSONObject"
Methods
impl JSONObject
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
pub fn new_Map<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Map>>
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Map>>
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
Required features: "java-util-Map"
pub fn new_JSONTokener<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env JSONTokener>>
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env JSONTokener>>
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
Required features: "org-json-JSONTokener"
pub fn new_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn new_JSONObject_String_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env JSONObject>>,
arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env JSONObject>>,
arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Local<'env, JSONObject>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONObject"
pub fn length<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn put_String_boolean<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: bool
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: bool
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONObject"
pub fn put_String_double<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: f64
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: f64
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONObject"
pub fn put_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONObject"
pub fn put_String_long<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONObject"
pub fn put_String_Object<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "org-json-JSONObject"
pub fn putOpt<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "org-json-JSONObject"
pub fn accumulate<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "org-json-JSONObject"
pub fn remove<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String"
pub fn isNull<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn has<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn get<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String"
pub fn opt<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String"
pub fn getBoolean<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optBoolean_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optBoolean_String_boolean<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: bool
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getDouble<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<f64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<f64, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optDouble_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<f64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<f64, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optDouble_String_double<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: f64
) -> Result<f64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: f64
) -> Result<f64, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getInt<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optInt_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optInt_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getLong<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optLong_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optLong_String_long<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i64
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getString<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optString_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn optString_String_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getJSONArray<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONArray"
pub fn optJSONArray<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONArray"
pub fn getJSONObject<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONObject"
pub fn optJSONObject<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, JSONObject>>, Local<'env, Throwable>>
Required features: "java-lang-String", "org-json-JSONObject"
pub fn toJSONArray<'env>(
&'env self,
arg0: impl Into<Option<&'env JSONArray>>
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env JSONArray>>
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
Required features: "org-json-JSONArray"
pub fn keys<'env>(
&'env self
) -> Result<Option<Local<'env, Iterator>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Iterator>>, Local<'env, Throwable>>
Required features: "java-util-Iterator"
pub fn names<'env>(
&'env self
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
Required features: "org-json-JSONArray"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn toString_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn numberToString<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Number>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Number>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-Number", "java-lang-String"
pub fn quote<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn wrap<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn NULL<'env>(env: &'env Env) -> Option<Local<'env, Object>>
[src]
get public static final NULL
Required feature: "java-lang-Object"
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for JSONObject
impl AsValidJObjectAndEnv for JSONObject
impl Deref for JSONObject
impl JniType for JSONObject
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for JSONObject
impl !Send for JSONObject
impl !Sync for JSONObject
impl Unpin for JSONObject
impl UnwindSafe for JSONObject
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,