Liking cljdoc? Tell your friends :D

orchard.java.source-files

Contains functions for discovering Java source files that are already available on the REPL and for downloading sources from Maven.

Contains functions for discovering Java source files that are already available
on the REPL and for downloading sources from Maven.
raw docstring

*download-sources-jar-fn*clj

When not nil, this function will be called on the Class object if none of the resolving methods could discover the source file for that class. The bound function should try to download the JAR and return true if it did.

When not nil, this function will be called on the Class object if none of the
resolving methods could discover the source file for that class. The bound
function should try to download the JAR and return true if it did.
sourceraw docstring

class->source-file-urlclj

(class->source-file-url klass)

Resolve the URL path to the sources given klass using any of the supported methods. If no method worked and *download-sources-jar-fn* is bound, invoke it and try to resolve again.

Resolve the URL path to the sources given `klass` using any of the supported
methods. If no method worked and `*download-sources-jar-fn*` is bound, invoke
it and try to resolve again.
sourceraw docstring

class->sourcefile-pathclj

(class->sourcefile-path klass)

Infer a relative path to a source file of the given klass.

Infer a relative path to a source file of the given `klass`.
sourceraw docstring

download-sources-jar-for-coordinatesclj

(download-sources-jar-for-coordinates maven-coordinates)

Download source JAR for given library coordinates using either tools.deps or Leiningen, depending how the Clojure process was started. Returns non-nil if any of the methods at least attempted to download the artifact, or nil if downloading didn't happen.

Download source JAR for given library coordinates using either tools.deps or
Leiningen, depending how the Clojure process was started. Returns non-nil if
any of the methods at least attempted to download the artifact, or nil if
downloading didn't happen.
sourceraw docstring

infer-maven-coordinates-for-classclj

(infer-maven-coordinates-for-class klass)

Given a class, attempt to parse its Maven coordinates (group id, artifact id, version) from the JAR path it resides in.

Given a class, attempt to parse its Maven coordinates (group id, artifact id,
version) from the JAR path it resides in.
sourceraw docstring

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

× close