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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

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

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

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

        /// [cancel](https://developer.android.com/reference/java/nio/file/WatchKey.html#cancel())
        pub fn cancel<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "java/nio/file/WatchKey", java.flags == PUBLIC | ABSTRACT, .name == "cancel", .descriptor == "()V"
            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/WatchKey\0", "cancel\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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