jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "java-nio-file-attribute-BasicFileAttributes"))]
__jni_bindgen! {
    /// public interface [BasicFileAttributes](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html)
    ///
    /// Required feature: "java-nio-file-attribute-BasicFileAttributes"
    public interface BasicFileAttributes ("java/nio/file/attribute/BasicFileAttributes") extends crate::java::lang::Object {

        /// [lastModifiedTime](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#lastModifiedTime())
        ///
        /// Required features: "java-nio-file-attribute-FileTime"
        #[cfg(any(feature = "all", all(feature = "java-nio-file-attribute-FileTime")))]
        pub fn lastModifiedTime<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::file::attribute::FileTime>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "lastModifiedTime", .descriptor == "()Ljava/nio/file/attribute/FileTime;"
            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/nio/file/attribute/BasicFileAttributes\0", "lastModifiedTime\0", "()Ljava/nio/file/attribute/FileTime;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [lastAccessTime](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#lastAccessTime())
        ///
        /// Required features: "java-nio-file-attribute-FileTime"
        #[cfg(any(feature = "all", all(feature = "java-nio-file-attribute-FileTime")))]
        pub fn lastAccessTime<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::file::attribute::FileTime>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "lastAccessTime", .descriptor == "()Ljava/nio/file/attribute/FileTime;"
            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/nio/file/attribute/BasicFileAttributes\0", "lastAccessTime\0", "()Ljava/nio/file/attribute/FileTime;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [creationTime](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#creationTime())
        ///
        /// Required features: "java-nio-file-attribute-FileTime"
        #[cfg(any(feature = "all", all(feature = "java-nio-file-attribute-FileTime")))]
        pub fn creationTime<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::file::attribute::FileTime>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "creationTime", .descriptor == "()Ljava/nio/file/attribute/FileTime;"
            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/nio/file/attribute/BasicFileAttributes\0", "creationTime\0", "()Ljava/nio/file/attribute/FileTime;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isRegularFile](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#isRegularFile())
        pub fn isRegularFile<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "isRegularFile", .descriptor == "()Z"
            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/nio/file/attribute/BasicFileAttributes\0", "isRegularFile\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isDirectory](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#isDirectory())
        pub fn isDirectory<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "isDirectory", .descriptor == "()Z"
            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/nio/file/attribute/BasicFileAttributes\0", "isDirectory\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isSymbolicLink](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#isSymbolicLink())
        pub fn isSymbolicLink<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "isSymbolicLink", .descriptor == "()Z"
            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/nio/file/attribute/BasicFileAttributes\0", "isSymbolicLink\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isOther](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#isOther())
        pub fn isOther<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "isOther", .descriptor == "()Z"
            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/nio/file/attribute/BasicFileAttributes\0", "isOther\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [size](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#size())
        pub fn size<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "size", .descriptor == "()J"
            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/nio/file/attribute/BasicFileAttributes\0", "size\0", "()J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [fileKey](https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributes.html#fileKey())
        ///
        /// Required features: "java-lang-Object"
        #[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
        pub fn fileKey<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Object>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/BasicFileAttributes", java.flags == PUBLIC | ABSTRACT, .name == "fileKey", .descriptor == "()Ljava/lang/Object;"
            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/nio/file/attribute/BasicFileAttributes\0", "fileKey\0", "()Ljava/lang/Object;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}