Liking cljdoc? Tell your friends :D

hara.deploy.linkage.clj


get-defclassclj

(get-defclass ns forms)

gets all the defclass and deftype definitions in a set of forms

(get-defclass 'hello '[(deftype Record []) (defrecord Database [])]) => '(hello.Record hello.Database)

gets all the defclass and deftype definitions in a set of forms

(get-defclass 'hello '[(deftype Record [])
                       (defrecord Database [])])
=> '(hello.Record hello.Database)
raw docstring

get-genclassclj

(get-genclass ns body)

gets the gen-class of a clojure ns declaration

(get-genclass 'hello '[(:gen-class :name im.chit.hello.MyClass)]) => '[im.chit.hello.MyClass]

(get-genclass 'hello '[(:import im.chit.hello.MyClass)]) => nil

gets the gen-class of a clojure ns declaration

(get-genclass 'hello '[(:gen-class :name im.chit.hello.MyClass)])
=> '[im.chit.hello.MyClass]

(get-genclass 'hello '[(:import im.chit.hello.MyClass)])
=> nil
raw docstring

get-importsclj

(get-imports form)

gets the class imports of a clojure ns declaration

(get-imports '(:import java.lang.String java.lang.Class)) => '(java.lang.String java.lang.Class)

(get-imports '(:import [java.lang String Class])) => '(java.lang.String java.lang.Class)

gets the class imports of a clojure ns declaration

(get-imports '(:import java.lang.String
                       java.lang.Class))
=> '(java.lang.String java.lang.Class)

(get-imports '(:import [java.lang String Class]))
=> '(java.lang.String java.lang.Class)
raw docstring

get-namespacesclj

(get-namespaces form fsyms)

gets the namespaces of a clojure s declaration

(get-namespaces '(:require repack.util.array [repack.util.data]) [:use :require]) => '(repack.util.array repack.util.data)

(get-namespaces '(:require [repack.util.array :refer :all]) [:use :require]) => '(repack.util.array)

(get-namespaces '(:require [repack.util [array :as array] data]) [:use :require]) => '(repack.util.array repack.util.data)

gets the namespaces of a clojure s declaration

(get-namespaces '(:require repack.util.array
                           [repack.util.data]) [:use :require])
=> '(repack.util.array repack.util.data)

(get-namespaces '(:require [repack.util.array :refer :all])
                [:use :require])
=> '(repack.util.array)

(get-namespaces '(:require [repack.util
                            [array :as array]
                            data]) [:use :require])
=> '(repack.util.array repack.util.data)
raw docstring

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

× close