code.framework.link.clj

get-defclass

added in 3.0

(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)

get-genclass

added in 3.0

(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

get-imports

added in 3.0

(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)

get-namespaces

added in 3.0

(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)