Liking cljdoc? Tell your friends :D

hara.object.framework.read


+meta-read-exactclj

(+meta-read-exact ??)
?? invalid arglists:
()

cache for hara.object.framework.read/meta-read-exact

cache for hara.object.framework.read/meta-read-exact
raw docstring

+read-get-opts+clj


+read-is-opts+clj


+read-template+clj

(+read-template+ <tag> <method>)

create-read-method-formclj

(create-read-method-form ele prefix template extra)

creates a method based on a template (read/create-read-method (reflect/query-class Dog ["getName" :#]) "get" read/+read-get-opts+ nil) => (contains-in [:name {:type String :fn {:prefix "get", :template fn?}}])

creates a method based on a template
(read/create-read-method (reflect/query-class Dog ["getName" :#])
                         "get"
                         read/+read-get-opts+
                         nil)
=> (contains-in [:name {:type String :fn {:prefix "get", :template fn?}}])
raw docstring

meta-readclj

(meta-read cls)

access read attributes

(read/meta-read Pet) => (contains-in {:class test.Pet :methods {:name {:fn fn?} :species {:fn fn?}}})

access read attributes

(read/meta-read Pet)
=> (contains-in {:class test.Pet
                 :methods {:name {:fn fn?}
                           :species {:fn fn?}}})
raw docstring

meta-read-exactclj

(meta-read-exact cls)

access read attributes for the exact class

(read/meta-read-exact Object) => nil

access read attributes for the exact class

(read/meta-read-exact Object)
=> nil
raw docstring

meta-read-exact-rawclj

(meta-read-exact-raw cls)

helper function for hara.object.framework.read/meta-read-exact

helper function for hara.object.framework.read/meta-read-exact
raw docstring

meta-read-exact?clj

(meta-read-exact? cls)

checks if read attributes are avaliable

(read/meta-read-exact? Object) => false

checks if read attributes are avaliable

(read/meta-read-exact? Object)
=> false
raw docstring

parse-optsclj

(parse-opts opts)

read-all-fieldsclj

(read-all-fields cls)

all fields of an object from reflection

(-> (read/read-all-fields {}) keys) => [:-hash :-hasheq :-meta :array]

all fields of an object from reflection

(-> (read/read-all-fields {})
    keys)
=> [:-hash :-hasheq :-meta :array]
raw docstring

read-all-getterscljmacro

(read-all-getters cls)
(read-all-getters cls opts)

returns fields of an object and base classes (-> (read/read-all-getters Dog) keys) => [:class :name :species]

returns fields of an object and base classes
(-> (read/read-all-getters Dog)
    keys)
=> [:class :name :species]
raw docstring

read-exclj

(read-ex k)

creates a getter method that throws an an exception

((read/read-ex :hello) nil) => throws

creates a getter method that throws an an exception

((read/read-ex :hello) nil)
=> throws
raw docstring

read-fieldsclj

(read-fields cls)
(read-fields cls query-fn)

fields of an object from reflection (-> (read/read-fields Dog) keys) => [:name :species]

fields of an object from reflection
(-> (read/read-fields Dog)
    keys)
=> [:name :species]
raw docstring

read-getterscljmacro

(read-getters cls)
(read-getters cls opts)
(read-getters cls opts query-fn)

read-getters-formclj

(read-getters-form cls)
(read-getters-form cls opts)
(read-getters-form cls {:keys [prefix template extra] :as opts} query-fn)

returns fields of an object through getter methods (-> (read/read-getters Dog) keys) => [:name :species]

returns fields of an object through getter methods
(-> (read/read-getters Dog)
    keys)
=> [:name :species]
raw docstring

to-dataclj

(to-data obj)

creates the object from a string or map

(read/to-data "hello") => "hello"

(read/to-data (write/from-map {:name "hello" :species "dog"} Pet)) => (contains {:name "hello"})

creates the object from a string or map

(read/to-data "hello")
=> "hello"

(read/to-data (write/from-map {:name "hello" :species "dog"} Pet))
=> (contains {:name "hello"})
raw docstring

to-mapclj

(to-map obj)

creates a map from an object

(read/to-map (Cat. "spike")) => (contains {:name "spike"})

creates a map from an object

(read/to-map (Cat. "spike"))
=> (contains {:name "spike"})
raw docstring

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

× close