(add-annotations seed obj)
adds additional annotations to the class
(common/add-annotations {} String) => {}
adds additional annotations to the class (common/add-annotations {} String) => {}
(box-args ele args)
makes the parameters of the arguments conform to the function signature
(-> (query/query-class String ["charAt" :#]) (common/box-args ["0123" 1])) => ["0123" 1]
makes the parameters of the arguments conform to the function signature (-> (query/query-class String ["charAt" :#]) (common/box-args ["0123" 1])) => ["0123" 1]
(element-params-method ele)
arglist parameters for an element
(-> (query/query-class String ["charAt" :#]) (common/element-params-method)) => '[java.lang.String int]
arglist parameters for an element (-> (query/query-class String ["charAt" :#]) (common/element-params-method)) => '[java.lang.String int]
(format-element-method ele)
readable string representation of an element
(-> (query/query-class String ["charAt" :#]) (common/format-element-method)) => "#[charAt :: (java.lang.String, int) -> char]"
readable string representation of an element (-> (query/query-class String ["charAt" :#]) (common/format-element-method)) => "#[charAt :: (java.lang.String, int) -> char]"
(get-declaring-class obj)
(get-modifiers obj)
(seed tag obj)
returns the preliminary attributes for creating an element
(common/seed :class String) => (contains {:name "java.lang.String", :tag :class, :modifiers #{:instance :public :final :class}, :static false, :delegate java.lang.String})
(common/seed :method (.getDeclaredMethod String "charAt" (doto (make-array Class 1) (aset 0 Integer/TYPE)))) => (contains {:name "charAt", :tag :method, :container java.lang.String, :modifiers #{:instance :method :public} :static false, :delegate java.lang.reflect.Method})
returns the preliminary attributes for creating an element (common/seed :class String) => (contains {:name "java.lang.String", :tag :class, :modifiers #{:instance :public :final :class}, :static false, :delegate java.lang.String}) (common/seed :method (.getDeclaredMethod String "charAt" (doto (make-array Class 1) (aset 0 Integer/TYPE)))) => (contains {:name "charAt", :tag :method, :container java.lang.String, :modifiers #{:instance :method :public} :static false, :delegate java.lang.reflect.Method})
(set-accessible obj flag)
sets the accessible flag in the class to be true
(common/set-accessible (.getDeclaredMethod String "charAt" (doto (make-array Class 1) (aset 0 Integer/TYPE))) true)
sets the accessible flag in the class to be true (common/set-accessible (.getDeclaredMethod String "charAt" (doto (make-array Class 1) (aset 0 Integer/TYPE))) true)
(throw-arg-exception ele args & [header])
helper macro for box-args to throw readable messages
helper macro for box-args to throw readable messages
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close