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.
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.
(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.
(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`.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close