Liking cljdoc? Tell your friends :D

hara.reflect.element.common


add-annotationsclj

(add-annotations seed obj)

adds additional annotations to the class

(common/add-annotations {} String) => {}

adds additional annotations to the class

(common/add-annotations {} String)
=> {}
raw docstring

box-argsclj

(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]
raw docstring

element-params-methodclj

(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]
raw docstring

format-element-methodclj

(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]"
raw docstring

IElementcljprotocol

get-declaring-classclj

(get-declaring-class obj)

get-modifiersclj

(get-modifiers obj)

overrideclj


seedclj

(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})
raw docstring

set-accessibleclj

(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)
raw docstring

throw-arg-exceptionclj/smacro

(throw-arg-exception ele args & [header])

helper macro for box-args to throw readable messages

helper macro for box-args to throw readable messages
raw docstring

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

× close