aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/world/file/watch.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/world/file/watch.lux')
-rw-r--r--stdlib/source/library/lux/world/file/watch.lux64
1 files changed, 34 insertions, 30 deletions
diff --git a/stdlib/source/library/lux/world/file/watch.lux b/stdlib/source/library/lux/world/file/watch.lux
index a5828f116..65a75d232 100644
--- a/stdlib/source/library/lux/world/file/watch.lux
+++ b/stdlib/source/library/lux/world/file/watch.lux
@@ -262,14 +262,16 @@
[fs
(..polling fs)]))
-(with_expansions [<jvm> (as_is (import: java/lang/Object)
+(with_expansions [<jvm> (as_is (import: java/lang/Object
+ "[1]::[0]")
- (import: java/lang/String)
+ (import: java/lang/String
+ "[1]::[0]")
(import: (java/util/List a)
- ["[1]::[0]"
- (size [] int)
- (get [int] a)])
+ "[1]::[0]"
+ (size [] int)
+ (get [int] a))
(def: (default_list list)
(All (_ a) (-> (java/util/List a) (List a)))
@@ -282,24 +284,26 @@
output})
output))))
- (import: (java/nio/file/WatchEvent$Kind a))
+ (import: (java/nio/file/WatchEvent$Kind a)
+ "[1]::[0]")
(import: (java/nio/file/WatchEvent a)
- ["[1]::[0]"
- (kind [] (java/nio/file/WatchEvent$Kind a))])
+ "[1]::[0]"
+ (kind [] (java/nio/file/WatchEvent$Kind a)))
- (import: java/nio/file/Watchable)
+ (import: java/nio/file/Watchable
+ "[1]::[0]")
(import: java/nio/file/Path
- ["[1]::[0]"
- (register [java/nio/file/WatchService [(java/nio/file/WatchEvent$Kind [? < java/lang/Object])]] "io" "try" java/nio/file/WatchKey)
- (toString [] java/lang/String)])
+ "[1]::[0]"
+ (register [java/nio/file/WatchService [(java/nio/file/WatchEvent$Kind [? < java/lang/Object])]] "io" "try" java/nio/file/WatchKey)
+ (toString [] java/lang/String))
(import: java/nio/file/StandardWatchEventKinds
- ["[1]::[0]"
- ("static" ENTRY_CREATE (java/nio/file/WatchEvent$Kind java/nio/file/Path))
- ("static" ENTRY_MODIFY (java/nio/file/WatchEvent$Kind java/nio/file/Path))
- ("static" ENTRY_DELETE (java/nio/file/WatchEvent$Kind java/nio/file/Path))])
+ "[1]::[0]"
+ ("static" ENTRY_CREATE (java/nio/file/WatchEvent$Kind java/nio/file/Path))
+ ("static" ENTRY_MODIFY (java/nio/file/WatchEvent$Kind java/nio/file/Path))
+ ("static" ENTRY_DELETE (java/nio/file/WatchEvent$Kind java/nio/file/Path)))
(def: (default_event_concern event)
(All (_ a)
@@ -323,11 +327,11 @@
)))
(import: java/nio/file/WatchKey
- ["[1]::[0]"
- (reset [] "io" boolean)
- (cancel [] "io" void)
- (watchable [] java/nio/file/Watchable)
- (pollEvents [] "io" (java/util/List (java/nio/file/WatchEvent ?)))])
+ "[1]::[0]"
+ (reset [] "io" boolean)
+ (cancel [] "io" void)
+ (watchable [] java/nio/file/Watchable)
+ (pollEvents [] "io" (java/util/List (java/nio/file/WatchEvent ?))))
(def: default_key_concern
(-> java/nio/file/WatchKey (IO Concern))
@@ -337,21 +341,21 @@
(list#mix ..also ..none)))))
(import: java/nio/file/WatchService
- ["[1]::[0]"
- (poll [] "io" "try" "?" java/nio/file/WatchKey)])
+ "[1]::[0]"
+ (poll [] "io" "try" "?" java/nio/file/WatchKey))
(import: java/nio/file/FileSystem
- ["[1]::[0]"
- (newWatchService [] "io" "try" java/nio/file/WatchService)])
+ "[1]::[0]"
+ (newWatchService [] "io" "try" java/nio/file/WatchService))
(import: java/nio/file/FileSystems
- ["[1]::[0]"
- ("static" getDefault [] java/nio/file/FileSystem)])
+ "[1]::[0]"
+ ("static" getDefault [] java/nio/file/FileSystem))
(import: java/io/File
- ["[1]::[0]"
- (new [java/lang/String])
- (toPath [] java/nio/file/Path)])
+ "[1]::[0]"
+ (new [java/lang/String])
+ (toPath [] java/nio/file/Path))
(type: Watch_Event
(java/nio/file/WatchEvent$Kind java/lang/Object))