Liking cljdoc? Tell your friends :D

orchard.java.parser-next

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.
raw docstring

cleanup-whitespaceclj

(cleanup-whitespace fragments)
source

coalesceclj

(coalesce xs)
source

dispatchclj

(dispatch node _stack _found-closing-tags-types)
source

docstringclj

(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
sourceraw docstring

lockclj

source

nbspclj

source

newline-fragmentclj

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.
sourceraw docstring

node-reducerclj

(node-reducer {:keys [stack result found-closing-tags-types] :as m} node)
source

node-reducer-initclj

source

parse-executable-elementclj

(parse-executable-element m env)
source

parse-infoclj

(parse-info o env)
source

Parsedcljprotocol

parse-info*clj

(parse-info* o env)
source

process-nodecljmultimethod

source

remove-left-marginclj

(remove-left-margin s)
source

source-infoclj

(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`.
sourceraw docstring

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

× close