Liking cljdoc? Tell your friends :D

hara.object.element


+to-elementclj

(+to-element ??)
?? invalid arglists:
()

cache for hara.object.element/to-element

cache for hara.object.element/to-element
raw docstring

class-hierarchyclj

(class-hierarchy obj)

Lists the class and interface hierarchy for the class

(element/class-hierarchy String) => [java.lang.String [java.lang.Object #{java.io.Serializable java.lang.Comparable java.lang.CharSequence}]]

Lists the class and interface hierarchy for the class

(element/class-hierarchy String)
=> [java.lang.String
    [java.lang.Object
     #{java.io.Serializable
       java.lang.Comparable
       java.lang.CharSequence}]]
raw docstring

class-infoclj

(class-info obj)

Lists class information

(element/class-info String) => (contains {:name "java.lang.String" :hash anything :modifiers #{:instance :class :public :final}})

Lists class information

(element/class-info String)
=> (contains {:name "java.lang.String"
              :hash anything
              :modifiers #{:instance :class :public :final}})
raw docstring

constructor?clj

(constructor? elem)

checks if if an element is a constructor

(-> (.getConstructors String) (first) (element/to-element) (element/constructor?)) => true

checks if if an element is a constructor

(-> (.getConstructors String)
    (first)
    (element/to-element)
    (element/constructor?))
=> true
raw docstring

element-paramsclj

(element-params elem)

returns the arglist of a particular element

(-> (first (.getMethods String)) (element/to-element) (element/element-params)) ;;=> '([java.lang.String java.lang.Object])

returns the arglist of a particular element

(-> (first (.getMethods String))
    (element/to-element)
    (element/element-params))
;;=> '([java.lang.String java.lang.Object])
raw docstring

field?clj

(field? elem)

checks if an element is a field

(-> (.getFields String) (first) (element/to-element) (element/field?)) => true

checks if an element is a field

(-> (.getFields String)
    (first)
    (element/to-element)
    (element/field?))
=> true
raw docstring

instance?clj

(instance? elem)

checks if an element is non static

(->> (.getMethods String) (map element/to-element) (filter element/instance?) first) ;;#elem[equals :: (java.lang.String, java.lang.Object) -> boolean]

checks if an element is non static

(->> (.getMethods String)
     (map element/to-element)
     (filter element/instance?)
     first)
;;#elem[equals :: (java.lang.String, java.lang.Object) -> boolean]
raw docstring

method?clj

(method? elem)

checks if an element is a method

(-> (.getMethods String) (first) (element/to-element) (element/method?)) => true

checks if an element is a method

(-> (.getMethods String)
    (first)
    (element/to-element)
    (element/method?))
=> true
raw docstring

plain?clj

(plain? elem)

checks if an element is neither public or private

checks if an element is neither public or private
raw docstring

private?clj

(private? elem)

checks if an element is private

(->> (.getDeclaredFields String) (map element/to-element) (filter element/private?) first) ;;#elem[value :: (java.lang.String) | byte[]]

checks if an element is private

(->> (.getDeclaredFields String)
     (map element/to-element)
     (filter element/private?)
     first)
;;#elem[value :: (java.lang.String) | byte[]]
raw docstring

protected?clj

(protected? elem)

checks if an element is protected

checks if an element is protected
raw docstring

public?clj

(public? elem)

checks if an element is public

(->> (.getMethods String) (map element/to-element) (filter element/public?) first) ;;#elem[equals :: (java.lang.String, java.lang.Object) -> boolean]

checks if an element is public

(->> (.getMethods String)
     (map element/to-element)
     (filter element/public?)
     first)
;;#elem[equals :: (java.lang.String, java.lang.Object) -> boolean]
raw docstring

static?clj

(static? elem)

checks if an element is a static one

(->> (.getMethods String) (map element/to-element) (filter element/static?) first) ;;#elem[valueOf :: (int) -> java.lang.String]

checks if an element is a static one

(->> (.getMethods String)
     (map element/to-element)
     (filter element/static?)
     first)
;;#elem[valueOf :: (int) -> java.lang.String]
raw docstring

to-elementclj

(to-element obj)

converts a java.reflect object to a hara.object.element one

(element/to-element (first (.getMethods String))) ;; #elem[equals :: (java.lang.String, java.lang.Object) -> boolean]

converts a `java.reflect` object to a `hara.object.element` one

(element/to-element (first (.getMethods String)))
;; #elem[equals :: (java.lang.String, java.lang.Object) -> boolean]
raw docstring

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

× close