Liking cljdoc? Tell your friends :D

hara.core.base.inheritance


all-ancestorsclj

(all-ancestors cls)

returns all ancestors for a given type, itself included

(all-ancestors String) => #{java.lang.CharSequence java.io.Serializable java.lang.Object java.lang.String java.lang.Comparable}

returns all ancestors for a given type, itself included

(all-ancestors String)
=> #{java.lang.CharSequence
     java.io.Serializable
     java.lang.Object
     java.lang.String
     java.lang.Comparable}
raw docstring

all-interfacesclj

(all-interfaces cls)

Lists all interfaces for a class

(all-interfaces clojure.lang.AFn) => #{java.lang.Runnable java.util.concurrent.Callable clojure.lang.IFn}

Lists all interfaces for a class

(all-interfaces clojure.lang.AFn)
=> #{java.lang.Runnable
     java.util.concurrent.Callable
     clojure.lang.IFn}
raw docstring

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

inherits?clj

(inherits? ancestor cls)

checks if one class inherits from another

(inherits? clojure.lang.ILookup clojure.lang.APersistentMap) => true

checks if one class inherits from another

(inherits? clojure.lang.ILookup clojure.lang.APersistentMap)
=> true
raw docstring

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

× close