Liking cljdoc? Tell your friends :D

lucid.core.asm


*class-cache*clj


*rq*clj


class-0clj


dynamic-loaderclj

(dynamic-loader)

returns the clojure runtime classloader

(dynamic-loader) => #(instance? clojure.lang.DynamicClassLoader %)

returns the clojure runtime classloader

(dynamic-loader)
=> #(instance? clojure.lang.DynamicClassLoader %)
raw docstring

load-classcljmultimethod

loads class from an external source

(load-class "target/classes/test/Cat.class") => test.Cat

(load-class "<.m2>/org/yaml/snakeyaml/1.5/snakeyaml-1.5.jar" "org/yaml/snakeyaml/Dumper.class") => org.yaml.snakeyaml.Dumper

(load-class '[org.yaml/snakeyaml "1.5"] "org/yaml/snakeyaml/Dumper.class") => org.yaml.snakeyaml.Dumper

loads class from an external source
       
(load-class "target/classes/test/Cat.class")
=> test.Cat

(load-class "<.m2>/org/yaml/snakeyaml/1.5/snakeyaml-1.5.jar"
          "org/yaml/snakeyaml/Dumper.class")
=> org.yaml.snakeyaml.Dumper

(load-class '[org.yaml/snakeyaml "1.5"]
          "org/yaml/snakeyaml/Dumper.class")
=> org.yaml.snakeyaml.Dumper
raw docstring

path->classnameclj

(path->classname path)

converts the path to a classname (path->classname "test/Dog.class") => "test.Dog"

converts the path to a classname
(path->classname "test/Dog.class")
=> "test.Dog"
raw docstring

to-bytescljmultimethod

opens .class file from an external source (to-bytes "target/classes/test/Dog.class") => checks/bytes?

opens `.class` file from an external source
(to-bytes "target/classes/test/Dog.class")
=> checks/bytes?
raw docstring

unload-classclj

(unload-class name)

unloads a class from the current namespace

(unload-class "test.Cat") ;; #object[java.lang.ref.SoftReference 0x10074132 ;; "java.lang.ref.SoftReference@10074132"]

unloads a class from the current namespace

(unload-class "test.Cat")
;; #object[java.lang.ref.SoftReference 0x10074132
;;         "java.lang.ref.SoftReference@10074132"]
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close