(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'
(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}
(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]}
(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]})
(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]}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close