aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/target/jvm/loader.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/target/jvm/loader.lux')
-rw-r--r--stdlib/source/library/lux/target/jvm/loader.lux18
1 files changed, 9 insertions, 9 deletions
diff --git a/stdlib/source/library/lux/target/jvm/loader.lux b/stdlib/source/library/lux/target/jvm/loader.lux
index ec7931743..3a38d9bb8 100644
--- a/stdlib/source/library/lux/target/jvm/loader.lux
+++ b/stdlib/source/library/lux/target/jvm/loader.lux
@@ -19,18 +19,18 @@
["." array]
["." dictionary (#+ Dictionary)]]]]])
-(type: #export Library
+(type: .public Library
(Atom (Dictionary Text Binary)))
-(exception: #export (already_stored {class Text})
+(exception: .public (already_stored {class Text})
(exception.report
["Class" class]))
-(exception: #export (unknown {class Text})
+(exception: .public (unknown {class Text})
(exception.report
["Class" class]))
-(exception: #export (cannot_define {class Text} {error Text})
+(exception: .public (cannot_define {class Text} {error Text})
(exception.report
["Class" class]
["Error" error]))
@@ -78,7 +78,7 @@
(ffi.class_for java/lang/ClassLoader))
(java/lang/reflect/AccessibleObject::setAccessible true)))))
-(def: #export (define class_name bytecode loader)
+(def: .public (define class_name bytecode loader)
(-> Text Binary java/lang/ClassLoader (Try java/lang/Object))
(let [signature (array.of_list (list (:as java/lang/Object
class_name)
@@ -95,11 +95,11 @@
ffi.long_to_int))))]
(java/lang/reflect/Method::invoke loader signature java/lang/ClassLoader::defineClass)))
-(def: #export (new_library _)
+(def: .public (new_library _)
(-> Any Library)
(atom.atom (dictionary.empty text.hash)))
-(def: #export (memory library)
+(def: .public (memory library)
(-> Library java/lang/ClassLoader)
(with_expansions [<cast> (for {@.old
(<|)
@@ -126,7 +126,7 @@
#.None
(error! (exception.error ..unknown [class_name])))))))))
-(def: #export (store name bytecode library)
+(def: .public (store name bytecode library)
(-> Text Binary Library (IO (Try Any)))
(do {! io.monad}
[library' (atom.read library)]
@@ -136,7 +136,7 @@
[_ (atom.update (dictionary.put name bytecode) library)]
(in (#try.Success []))))))
-(def: #export (load name loader)
+(def: .public (load name loader)
(-> Text java/lang/ClassLoader
(IO (Try (java/lang/Class java/lang/Object))))
(java/lang/ClassLoader::loadClass name loader))