(+to-element ??)
()
cache for hara.object.element/to-element
cache for hara.object.element/to-element
(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}]]
(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}})
(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
(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])
(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
(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]
(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
(plain? elem)
checks if an element is neither public or private
checks if an element is neither public or private
(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[]]
(protected? 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[]]
(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]
(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]
(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]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close