1.2.0 permalink Arrow_down_16x16
  • (javadoc class-or-object)
Opens a browser window displaying the javadoc for the argument.
Tries *local-javadocs* first, then *remote-javadocs*.

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/repl_utils/javadoc.clj:74 top

(defn javadoc
  "Opens a browser window displaying the javadoc for the argument.
  Tries *local-javadocs* first, then *remote-javadocs*."
  [class-or-object]
  (let [^Class c (if (instance? Class class-or-object) 
                    class-or-object 
                    (class class-or-object))]
    (if-let [url (find-javadoc-url (.getName c))]
        (browse-url url)
      (println "Could not find Javadoc for" c))))
Vars in clojure.contrib.repl-utils/javadoc: defn if-let let println
Used in 1 other vars javadoc

Comments top

No comments for javadoc. Log in to add a comment.