#[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))]
__jni_bindgen! {
public enum TextStyle ("java/time/format/TextStyle") extends crate::java::lang::Enum {
#[cfg(any(feature = "all", all(feature = "java-time-format-TextStyle")))]
pub fn values<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::time::format::TextStyle, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/time/format/TextStyle\0", "values\0", "()[Ljava/time/format/TextStyle;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-time-format-TextStyle")))]
pub fn valueOf<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/time/format/TextStyle\0", "valueOf\0", "(Ljava/lang/String;)Ljava/time/format/TextStyle;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn isStandalone<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/time/format/TextStyle\0", "isStandalone\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-time-format-TextStyle")))]
pub fn asStandalone<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/time/format/TextStyle\0", "asStandalone\0", "()Ljava/time/format/TextStyle;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-time-format-TextStyle")))]
pub fn asNormal<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/time/format/TextStyle\0", "asNormal\0", "()Ljava/time/format/TextStyle;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))]
pub fn FULL<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/time/format/TextStyle\0", "FULL\0", "Ljava/time/format/TextStyle;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))]
pub fn FULL_STANDALONE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/time/format/TextStyle\0", "FULL_STANDALONE\0", "Ljava/time/format/TextStyle;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))]
pub fn NARROW<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/time/format/TextStyle\0", "NARROW\0", "Ljava/time/format/TextStyle;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))]
pub fn NARROW_STANDALONE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/time/format/TextStyle\0", "NARROW_STANDALONE\0", "Ljava/time/format/TextStyle;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))]
pub fn SHORT<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/time/format/TextStyle\0", "SHORT\0", "Ljava/time/format/TextStyle;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))]
pub fn SHORT_STANDALONE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/time/format/TextStyle\0", "SHORT_STANDALONE\0", "Ljava/time/format/TextStyle;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}