Liking cljdoc? Tell your friends :D

hara.io.classpath.search


all-jarsclj

(all-jars & [x :as coords])

gets all jars, either on the classloader or coordinate

(-> (all-jars) count) => 150

(-> (all-jars '[org.eclipse.aether/aether-api "1.1.0"]) count) => 1

gets all jars, either on the classloader or coordinate

(-> (all-jars)
    count)
=> 150

(-> (all-jars '[org.eclipse.aether/aether-api "1.1.0"])
    count)
=> 1
raw docstring

class-seqclj

(class-seq)
(class-seq coords)

creates a sequence of class names

(-> (all-jars '[org.eclipse.aether/aether-api "1.1.0"]) (class-seq) (count)) => 128

creates a sequence of class names

(-> (all-jars '[org.eclipse.aether/aether-api "1.1.0"])
    (class-seq)
    (count))
=> 128
raw docstring

match-jarsclj

(match-jars names)
(match-jars names coords)

matches jars from any representation

(match-jars '[org.eclipse.aether/aether-api "1.1.0"]) => ("<.m2>/org/eclipse/aether/aether-api/1.1.0/aether-api-1.1.0.jar")

matches jars from any representation

(match-jars '[org.eclipse.aether/aether-api "1.1.0"])
=> ("<.m2>/org/eclipse/aether/aether-api/1.1.0/aether-api-1.1.0.jar")
raw docstring

(search matches classes)

searches a pattern for class names

(->> (.getURLs cls/+base+) (map #(-> % str (subs (count "file:")))) (filter #(.endsWith % "jfxrt.jar")) (class-seq) (search [#"^javafx.*[A-Za-z0-9]Builder$"]) (take 5)) => (javafx.animation.AnimationBuilder javafx.animation.FadeTransitionBuilder javafx.animation.FillTransitionBuilder javafx.animation.ParallelTransitionBuilder javafx.animation.PathTransitionBuilder)

searches a pattern for class names

 (->> (.getURLs cls/+base+)
      (map #(-> % str (subs (count "file:"))))
      (filter #(.endsWith % "jfxrt.jar"))
      (class-seq)
      (search [#"^javafx.*[A-Za-z0-9]Builder$"])
      (take 5))
=> (javafx.animation.AnimationBuilder
     javafx.animation.FadeTransitionBuilder
     javafx.animation.FillTransitionBuilder
     javafx.animation.ParallelTransitionBuilder
     javafx.animation.PathTransitionBuilder)
raw docstring

search-matchclj

(search-match match)

constructs a matching function for filtering

((search-match #"hello") "hello.world") => true

((search-match java.util.List) java.util.ArrayList) => true

constructs a matching function for filtering

((search-match #"hello") "hello.world")
=> true

((search-match java.util.List) java.util.ArrayList)
=> true
raw docstring

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

× close