Source and docstring info for Java classes and members.
Leaves :doc
untouched.
Adds :doc-fragments
, :doc-first-sentence-fragments
, and :doc-block-tags-fragments
attributes.
These represent sequences of 'fragments', which can be of text or html type:
:doc-fragments
represents the body of the comment, including the first sentence and excluding any block tags:doc-first-sentence-fragments
represents the first sentence of the doc comment.:doc-block-tags-fragments
represent the 'param', 'returns' and 'throws' documentation.Clients are expected them to render the html fragments using a client-specific method, and then join the client-processed strings into a single string.
Fragments of "html" type may have leading/trailing whitespace, which is to be ignored (since an HTML parser would ignored it anyway).
Fragments of "text" type have significant, carefully processed leading/trailing whitespace such that when joining all fragments, things will look correct without having to add any extra whitespace.
Source and docstring info for Java classes and members. Leaves `:doc` untouched. Adds `:doc-fragments`, `:doc-first-sentence-fragments`, and `:doc-block-tags-fragments` attributes. These represent sequences of 'fragments', which can be of text or html type: * `:doc-fragments` represents the body of the comment, including the first sentence and excluding any block tags * `:doc-first-sentence-fragments` represents the first sentence of the doc comment. * `:doc-block-tags-fragments` represent the 'param', 'returns' and 'throws' documentation. Clients are expected them to render the html fragments using a client-specific method, and then join the client-processed strings into a single string. Fragments of "html" type may have leading/trailing whitespace, which is to be ignored (since an HTML parser would ignored it anyway). Fragments of "text" type have significant, carefully processed leading/trailing whitespace such that when joining all fragments, things will look correct without having to add any extra whitespace.
(docstring e env)
Get parsed docstring text of e
using source information in env
Get parsed docstring text of `e` using source information in env
A newline intended to separate html fragments. We choose text, because inserting <p> elements could unbalance the tags, given that javadocs don't necessarily consistently choose self-closing tags.
A newline intended to separate html fragments. We choose text, because inserting <p> elements could unbalance the tags, given that javadocs don't necessarily consistently choose self-closing tags.
(source-info klass & [throw?])
If the source for the Java class is available on the classpath, parse it
and return info to supplement reflection. Specifically, this includes source
file and position, docstring, and argument name info. Info returned has the
same structure as that of orchard.java/reflect-info
.
If the source for the Java class is available on the classpath, parse it and return info to supplement reflection. Specifically, this includes source file and position, docstring, and argument name info. Info returned has the same structure as that of `orchard.java/reflect-info`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close