Liking cljdoc? Tell your friends :D

hara.object.element.impl.method


invoke-instance-methodclj

(invoke-instance-method ele args)

invoke function for an instance method

(-> (query/query-class String ["charAt" :#]) (method/invoke-instance-method ["0123" 1])) => '1'

invoke function for an instance method

(-> (query/query-class String ["charAt" :#])
    (method/invoke-instance-method ["0123" 1]))
=> '1'
raw docstring

invoke-static-methodclj

(invoke-static-method ele)
(invoke-static-method ele args)

invoke function for a static method

(-> (query/query-class clojure.java.api.Clojure ["read" :#]) (method/invoke-static-method ["{:a 1}"])) => {:a 1}

invoke function for a static method

(-> (query/query-class clojure.java.api.Clojure ["read" :#])
    (method/invoke-static-method ["{:a 1}"]))
=> {:a 1}
raw docstring

to-instance-methodclj

(to-instance-method obj body)

creates the parameters for an instance method

(-> (query/query-class String ["charAt" :#]) :delegate (method/to-instance-method {:container String})) => {:container String :params [String Integer/TYPE] :origins [CharSequence String]}

creates the parameters for an instance method

(-> (query/query-class String ["charAt" :#])
    :delegate
    (method/to-instance-method {:container String}))
=> {:container String
    :params [String Integer/TYPE]
    :origins [CharSequence String]}
raw docstring

to-pre-elementclj

(to-pre-element obj)

creates the parameters for methods

(-> (query/query-class String ["charAt" :#]) :delegate (method/to-pre-element)) => (contains {:name "charAt" :tag :method :container String :modifiers #{:instance :method :public} :static false :delegate java.lang.reflect.Method :params [String Integer/TYPE] :origins [CharSequence String]})

creates the parameters for methods

(-> (query/query-class String ["charAt" :#])
    :delegate
    (method/to-pre-element))
=> (contains {:name "charAt"
              :tag :method
              :container String
              :modifiers #{:instance :method :public}
              :static false
             :delegate java.lang.reflect.Method
              :params [String Integer/TYPE]
              :origins [CharSequence String]})
raw docstring

to-static-methodclj

(to-static-method obj body)

creates the parameters for a static method

(-> (query/query-class clojure.java.api.Clojure ["read" :#]) :delegate (method/to-static-method {})) => {:params [String] :origins [clojure.java.api.Clojure]}

creates the parameters for a static method

(-> (query/query-class clojure.java.api.Clojure ["read" :#])
    :delegate
    (method/to-static-method {}))
=> {:params [String]
    :origins [clojure.java.api.Clojure]}
raw docstring

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

× close