Liking cljdoc? Tell your friends :D

hara.class.inheritance


ancestor-listclj

(ancestor-list cls)
(ancestor-list cls output)

Lists the direct ancestors of a class (ancestor-list clojure.lang.PersistentHashMap) => [clojure.lang.PersistentHashMap clojure.lang.APersistentMap clojure.lang.AFn java.lang.Object]

Lists the direct ancestors of a class
(ancestor-list clojure.lang.PersistentHashMap)
=> [clojure.lang.PersistentHashMap
    clojure.lang.APersistentMap
    clojure.lang.AFn
    java.lang.Object]
raw docstring

ancestor-treeclj

(ancestor-tree cls)
(ancestor-tree cls output)

Lists the hierarchy of bases and interfaces of a class. (ancestor-tree Class) => [[java.lang.Object #{java.io.Serializable java.lang.reflect.Type java.lang.reflect.AnnotatedElement java.lang.reflect.GenericDeclaration}]]

Lists the hierarchy of bases and interfaces of a class.
(ancestor-tree Class)
=> [[java.lang.Object #{java.io.Serializable
                        java.lang.reflect.Type
                        java.lang.reflect.AnnotatedElement
                        java.lang.reflect.GenericDeclaration}]]
raw docstring

best-matchclj

(best-match candidates cls)

finds the best matching interface or class from a list of candidates

(best-match #{Object} Long) => Object (best-match #{String} Long) => nil (best-match #{Object Number} Long) => Number

finds the best matching interface or class from a list of candidates

(best-match #{Object} Long) => Object
(best-match #{String} Long) => nil
(best-match #{Object Number} Long) => Number
raw docstring

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

× close