Liking cljdoc? Tell your friends :D

hara.reflect.core.apply


apply-elementclj

(apply-element obj method args)

apply the class element to arguments

(->> (apply-element "123" "value" []) (map char)) => [ ]

apply the class element to arguments

(->> (apply-element "123" "value" [])
     (map char))
=> [  ]
raw docstring

get-element-lookupclj

(get-element-lookup obj)

returns the element in the lookup adding it if it is not there

(->> (get-element-lookup "123") (keys)) => ("getChars" "trim" ... "finalize" "indexOfSupplementary")

returns the element in the lookup adding it if it is not there
       
(->> (get-element-lookup "123")
     (keys))
=> ("getChars" "trim" ...  "finalize" "indexOfSupplementary")
raw docstring

instance-lookupclj

(instance-lookup tcls)
(instance-lookup tcls icls)

creates a lookup table for all methods and fields of an object or class

(instance-lookup Class String) => map?

(instance-lookup CharSequence String) => map?

(instance-lookup CharSequence nil) => map?

creates a lookup table for all methods and fields of an object or class

(instance-lookup Class String)
=> map?

(instance-lookup CharSequence String)
=> map?

(instance-lookup CharSequence nil)
=> map?
raw docstring

instance-lookup-pathclj

(instance-lookup-path ele)

gives the parameters of the lookup

(->> (query/all-instance-elements String String) (first) (instance-lookup-path )) ;=> ["clone" :method 1 [java.lang.Object]]

gives the parameters of the lookup

(->> (query/all-instance-elements String String)
     (first)
     (instance-lookup-path ))
;=> ["clone" :method 1 [java.lang.Object]]
raw docstring

object-lookupclj

(object-lookup obj)

creates a lookup table for all methods and fields of an object

(object-lookup String) => map?

(object-lookup "123") => map?

creates a lookup table for all methods and fields of an object

(object-lookup String)
=> map?

(object-lookup "123")
=> map?
raw docstring

refine-lookupclj

(refine-lookup lu)

returns the element in the lookup adding it if it is not there

(->> (object-lookup "123") (refine-lookup) (sort) (first)) ;=> ["charAt" #[charAt :: (java.lang.String, int) -> char]]

returns the element in the lookup adding it if it is not there
       
(->> (object-lookup "123")
     (refine-lookup)
     (sort)
     (first))
;=> ["charAt" #[charAt :: (java.lang.String, int) -> char]]
raw docstring

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

× close