• (get-field klass field-name obj)
Access to private or protected field. field-name is a symbol or
keyword.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/reflect.clj:27 top

(defn get-field
  "Access to private or protected field.  field-name is a symbol or
  keyword."
  [klass field-name obj]
  (-> klass (.getDeclaredField (name field-name))
      (doto (.setAccessible true))
      (.get obj)))
Vars in clojure.contrib.reflect/get-field: -> defn doto name
Used in 0 other vars

Comments top

No comments for get-field. Log in to add a comment.