1.2.0 permalink Arrow_down_16x16

class-or-ns-name

swank.util.class-browse

  • (class-or-ns-name n)
Returns the Java class or Clojure namespace name for a class relative path.

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 swank/util/class_browse.clj:44 top

(defn class-or-ns-name
  "Returns the Java class or Clojure namespace name for a class relative path."
  [#^String n]
  (.replace
   (if (clojure-ns-file? n)
     (-> n (.replace "__init.class" "") (.replace "_" "-"))
     (.replace n ".class" ""))
   File/separator "."))
Vars in swank.util.class-browse/class-or-ns-name: -> defn
Used in 0 other vars

Comments top

No comments for class-or-ns-name. Log in to add a comment.