1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

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

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

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