Liking cljdoc? Tell your friends :D

orchard.inspect

Clojure data structure inspection functionality. This code has a long history and at various points of time it lived in different projects. Originally it was part of swank-clojure, afterwards it was moved to javert, then forked to another project from which it was contributed to cider-nrepl. Finally cider-nrepl was split into two libraries and the code ended up here.

Pretty wild, right?

Clojure data structure inspection functionality.
This code has a long history and at various points of
time it lived in different projects. Originally
it was part of swank-clojure, afterwards it was moved to
javert, then forked to another project from which it
was contributed to cider-nrepl. Finally cider-nrepl
was split into two libraries and the code ended up here.

Pretty wild, right?
raw docstring

clearcljdeprecated

(clear inspector)

If necessary, use (start inspector nil) instead.

If necessary, use `(start inspector nil) instead.`
sourceraw docstring

def-current-valueclj

(def-current-value inspector namespace var-name)

Define the currently inspected value as a var with the given name in the provided namespace.

Define the currently inspected value as a var with the given name in the
provided namespace.
sourceraw docstring

downclj

(down inspector idx)

Drill down to an indexed object referred to by the previously rendered value.

Drill down to an indexed object referred to by the previously rendered value.
sourceraw docstring

freshcljdeprecated

(fresh)

If necessary, use (start nil) instead.

If necessary, use `(start nil)` instead.
sourceraw docstring

inspectcljmultimethod

source

inspect-printclj

(inspect-print x)

Get a human readable printout of rendered sequence.

Get a human readable printout of rendered sequence.
sourceraw docstring

inspect-renderclj

(inspect-render {:keys [max-atom-length max-value-length max-coll-size
                        max-nested-depth value]
                 :as inspector})
(inspect-render inspector value)
source

known-typesclj

source

next-pageclj

(next-page {:keys [current-page last-page] :as inspector})

Jump to the next page when inspecting a paginated sequence/map. Does nothing if already on the last page.

Jump to the next page when inspecting a paginated sequence/map. Does nothing
if already on the last page.
sourceraw docstring

next-siblingclj

(next-sibling inspector)

Attempt to inspect the item next to the currenlty inspected value in the parent sequential collection.

Attempt to inspect the item next to the currenlty inspected value in the parent
sequential collection.
sourceraw docstring

ns-refers-by-nsclj

(ns-refers-by-ns ns)
source

prev-pageclj

(prev-page {:keys [current-page] :as inspector})

Jump to the previous page when inspecting a paginated sequence/map. Does nothing if already on the first page.

Jump to the previous page when inspecting a paginated sequence/map. Does
nothing if already on the first page.
sourceraw docstring

previous-siblingclj

(previous-sibling inspector)

Attempt to inspect the item previous to the currenlty inspected value in the parent sequential collection.

Attempt to inspect the item previous to the currenlty inspected value in the
parent sequential collection.
sourceraw docstring

push-item-to-pathclj

(push-item-to-path path role key)

Takes path and the role and key of the value to be navigated to, and returns the updated path to the selected value.

Takes `path` and the role and key of the value to be navigated to, and returns
the updated path to the selected value.
sourceraw docstring

renderclj

(render inspector & values)
source

render-labeled-valueclj

(render-labeled-value inspector label value)
source

render-lnclj

(render-ln inspector & values)
source

render-meta-informationclj

(render-meta-information inspector obj)
source

render-ontoclj

(render-onto inspector coll)
source

render-pathclj

(render-path inspector)
source

render-valueclj

(render-value inspector value & {:keys [value-role value-key display-value]})

Render the given value and add it to the index. value-role can be provided to mark in the index that the value comes from a collection, and value-key stands for the key by which value can be retrieved from its collection. display-value string can be provided explicitly.

Render the given `value` and add it to the index. `value-role` can be provided
to mark in the index that the value comes from a collection, and `value-key`
stands for the key by which value can be retrieved from its collection.
`display-value` string can be provided explicitly.
sourceraw docstring

set-max-atom-lengthclj

(set-max-atom-length inspector max-atom-length)

Set the maximum length of atomic collection members before they're truncated.

Set the maximum length of atomic collection members before they're truncated.
sourceraw docstring

set-max-coll-sizeclj

(set-max-coll-size inspector max-coll-size)

Set the maximum number of nested collection members to print before truncating.

Set the maximum number of nested collection members to print before truncating.
sourceraw docstring

set-max-nested-depthclj

(set-max-nested-depth inspector max-nested-depth)

Set the maximum level of nested collections to print before truncating.

Set the maximum level of nested collections to print before truncating.
sourceraw docstring

set-max-value-lengthclj

(set-max-value-length inspector max-value-length)

Set the maximum length of a whole printed value before it is truncated.

Set the maximum length of a whole printed value before it is truncated.
sourceraw docstring

set-page-sizeclj

(set-page-size inspector new-page-size)

Set the page size in pagination mode to the specified value. Current page will be reset to zero.

Set the page size in pagination mode to the specified value. Current page
will be reset to zero.
sourceraw docstring

startclj

(start value)
(start config value)

Create a new inspector for the value. Optinally accepts a config map (which can be an existing inspector with changed config).

Create a new inspector for the `value`. Optinally accepts a `config` map (which
can be an existing inspector with changed config).
sourceraw docstring

tap-current-valueclj

(tap-current-value inspector)

Tap the currently inspected value.

Tap the currently inspected value.
sourceraw docstring

tap-indexedclj

(tap-indexed {:keys [index] :as inspector} idx)

Tap the value found at idx, without navigating to it.

Tap the value found at `idx`, without navigating to it.
sourceraw docstring

upclj

(up inspector)

Pop the stack and re-render an earlier value.

Pop the stack and re-render an earlier value.
sourceraw docstring

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

× close