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?

clear

(clear inspector)
Clear an inspector's state.

def-current-value

(def-current-value inspector namespace var-name)
Define the currently inspected value as a var with the given name in the
provided namespace.

down

(down inspector idx)
Drill down to an indexed object referred to by the previously
rendered value.

eval-and-inspect

(eval-and-inspect inspector expr)
Evaluate the given expression where `v` is bound to the currently inspected
value. Open the evaluation result in the inspector.

fresh

(fresh)
Return an empty inspector.

inspect

multimethod

inspect-print

(inspect-print x)

inspect-print-component

multimethod

inspect-render

(inspect-render inspector)(inspect-render inspector value)

inspect-value

multimethod

inspector-value-string

known-types

(known-types ins obj)

next-page

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

ns-refers-by-ns

(ns-refers-by-ns ns)

pop-item-from-path

(pop-item-from-path path)
Takes the current inspector path, and returns an updated path one level up.

prev-page

(prev-page inspector)
Jump to the previous page when inspecting a paginated sequence/map. Does
nothing if already on the first page.

push-item-to-path

(push-item-to-path index idx path current-page page-size)
Takes the current inspector index, the `idx` of the value in it to be navigated
to, and the path so far, and returns the updated path to the selected value.

render

(render inspector & values)

render-collection-paged

(render-collection-paged inspector obj)
Render a single page of either an indexed or associative collection.

render-indexed-values

(render-indexed-values inspector obj)(render-indexed-values inspector obj idx-starts-from)

render-labeled-value

(render-labeled-value inspector label value)

render-ln

(render-ln inspector & values)

render-map-values

(render-map-values inspector mappable)

render-meta-information

(render-meta-information inspector obj)

render-onto

(render-onto inspector coll)

render-path

(render-path inspector)

render-reference

(render-reference inspector)

render-value

(render-value inspector value)

safe-pr-seq

(safe-pr-seq value fmt)(safe-pr-seq value sep fmt)

set-page-size

(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.

start

(start inspector value)
Put a new value onto the inspector stack.

up

(up inspector)
Pop the stack and re-render an earlier value.

value-types

(value-types value)