Liking cljdoc? Tell your friends :D

rewrite-clj.node


child-sexprsclj

(child-sexprs node)

Get all child s-expressions for the given node.

Get all child s-expressions for the given node.
raw docstring

childrenclj

(children _)

Get child nodes.

Get child nodes.
raw docstring

coerceclj

(coerce _)

comma-nodeclj

(comma-node s)

Create comma node.

Create comma node.
raw docstring

comma-separatedclj

(comma-separated nodes)

Interleave the given seq of nodes with ", " nodes.

Interleave the given seq of nodes with `", "` nodes.
raw docstring

comma?clj

(comma? node)

Check whether a node represents a comma.

Check whether a node represents a comma.
raw docstring

comment-nodeclj

(comment-node s)

Create node representing an EDN comment.

Create node representing an EDN comment.
raw docstring

comment?clj

(comment? node)

Check whether a node represents a comment.

Check whether a node represents a comment.
raw docstring

deref-nodeclj

(deref-node children)

Create node representing the dereferencing of a form. (@...) Takes either a seq of nodes or a single one.

Create node representing the dereferencing of a form. (`@...`)
Takes either a seq of nodes or a single one.
raw docstring

eval-nodeclj

(eval-node children)

Create node representing an inline evaluation. (#=...) Takes either a seq of nodes or a single one.

Create node representing an inline evaluation. (`#=...`)
Takes either a seq of nodes or a single one.
raw docstring

fn-nodeclj

(fn-node children)

Create node representing an anonymous function.

Create node representing an anonymous function.
raw docstring

forms-nodeclj

(forms-node children)

Create top-level node wrapping multiple children (equals an implicit do on the top-level).

Create top-level node wrapping multiple children
(equals an implicit `do` on the top-level).
raw docstring

inner?clj

(inner? _)

Check whether the node can contain children.

Check whether the node can contain children.
raw docstring

integer-nodeclj

(integer-node value)
(integer-node value base)

Create node for an EDN integer with the given base.

Create node for an EDN integer with the given base.
raw docstring

keyword-nodeclj

(keyword-node k & [namespaced?])

Create node representing a keyword. If namespaced? is given as true a keyword à la ::x or ::ns/x (i.e. namespaced/aliased) is generated.

Create node representing a keyword. If `namespaced?` is given as `true`
a keyword à la `::x` or `::ns/x` (i.e. namespaced/aliased) is generated.
raw docstring

leader-lengthclj

(leader-length _)

How many characters appear before children?

How many characters appear before children?
raw docstring

lengthclj

(length _)

Get number of characters for the string version of this node.

Get number of characters for the string version of this node.
raw docstring

line-separatedclj

(line-separated nodes)

Interleave the given seq of nodes with newline nodes.

Interleave the given seq of nodes with newline nodes.
raw docstring

linebreak?clj

(linebreak? node)

Check whether a ndoe represents linebreaks.

Check whether a ndoe represents linebreaks.
raw docstring

list-nodeclj

(list-node children)

Create a node representing an EDN list.

Create a node representing an EDN list.
raw docstring

map-nodeclj

(map-node children)

Create a node representing an EDN map.

Create a node representing an EDN map.
raw docstring

meta-nodeclj

(meta-node children)
(meta-node metadata data)

Create node representing a form and its metadata.

Create node representing a form and its metadata.
raw docstring

namespaced-map-nodeclj

(namespaced-map-node children)

Create a node representing an EDN map namespace.

Create a node representing an EDN map namespace.
raw docstring

newline-nodeclj

(newline-node s)

Create newline node.

Create newline node.
raw docstring

newlinesclj

(newlines n)

Create node representing the given number of newline characters.

Create node representing the given number of newline characters.
raw docstring

printable-only?clj

(printable-only? _)

Return true if the node cannot be converted to an s-expression element.

Return true if the node cannot be converted to an s-expression
element.
raw docstring

quote-nodeclj

(quote-node children)

Create node representing a quoted form. Takes either a seq of nodes or a single one.

Create node representing a quoted form.
Takes either a seq of nodes or a single one.
raw docstring

raw-meta-nodeclj

(raw-meta-node children)
(raw-meta-node metadata data)

Create node representing a form and its metadata using the #^ prefix.

Create node representing a form and its metadata using the
`#^` prefix.
raw docstring

reader-macro-nodeclj

(reader-macro-node children)
(reader-macro-node macro-node form-node)

Create node representing a reader macro. (#... ...)

Create node representing a reader macro. (`#... ...`)
raw docstring

regex-nodeclj

(regex-node pattern-string)

Create node representing a regex

Create node representing a regex
raw docstring

replace-childrenclj

(replace-children _ children)

Replace the node's children.

Replace the node's children.
raw docstring

set-nodeclj

(set-node children)

Create a node representing an EDN set.

Create a node representing an EDN set.
raw docstring

sexprclj

(sexpr _)

Convert node to s-expression.

Convert node to s-expression.
raw docstring

sexprsclj

(sexprs nodes)

Given a seq of nodes, convert those that represent s-expressions to the respective forms.

Given a seq of nodes, convert those that represent s-expressions
to the respective forms.
raw docstring

spacesclj

(spaces n)

Create node representing the given number of spaces.

Create node representing the given number of spaces.
raw docstring

stringclj

(string _)

Convert node to printable string.

Convert node to printable string.
raw docstring

string-nodeclj

(string-node lines)

Create node representing a string value. Takes either a seq of strings or a single one.

Create node representing a string value.
Takes either a seq of strings or a single one.
raw docstring

syntax-quote-nodeclj

(syntax-quote-node children)

Create node representing a syntax-quoted form. Takes either a seq of nodes or a single one.

Create node representing a syntax-quoted form.
Takes either a seq of nodes or a single one.
raw docstring

tagclj

(tag _)

Keyword representing the type of the node.

Keyword representing the type of the node.
raw docstring

token-nodeclj

(token-node value & [string-value])

Create node for an unspecified EDN token.

Create node for an unspecified EDN token.
raw docstring

uneval-nodeclj

(uneval-node children)

Create node representing an EDN uneval #_ form.

Create node representing an EDN uneval `#_` form.
raw docstring

unquote-nodeclj

(unquote-node children)

Create node representing an unquoted form. (~...) Takes either a seq of nodes or a single one.

Create node representing an unquoted form. (`~...`)
Takes either a seq of nodes or a single one.
raw docstring

unquote-splicing-nodeclj

(unquote-splicing-node children)

Create node representing an unquote-spliced form. (~@...) Takes either a seq of nodes or a single one.

Create node representing an unquote-spliced form. (`~@...`)
Takes either a seq of nodes or a single one.
raw docstring

valuecljdeprecated

(value node)

DEPRECATED: Get first child as a pair of tag/sexpr (if inner node), or just the node's own sexpr. (use explicit analysis of children child-sexprs instead)

DEPRECATED: Get first child as a pair of tag/sexpr (if inner node),
or just the node's own sexpr. (use explicit analysis of `children`
`child-sexprs` instead) 
raw docstring

var-nodeclj

(var-node children)

Create node representing a var. Takes either a seq of nodes or a single one.

Create node representing a var.
Takes either a seq of nodes or a single one.
raw docstring

vector-nodeclj

(vector-node children)

Create a node representing an EDN vector.

Create a node representing an EDN vector.
raw docstring

whitespace-nodeclj

(whitespace-node s)

Create whitespace node.

Create whitespace node.
raw docstring

whitespace-nodesclj

(whitespace-nodes s)

Convert a string of whitespace to whitespace/newline nodes.

Convert a string of whitespace to whitespace/newline nodes.
raw docstring

whitespace-or-comment?clj

(whitespace-or-comment? node)

Check whether the given node represents whitespace or comment.

Check whether the given node represents whitespace or comment.
raw docstring

whitespace?clj

(whitespace? node)

Check whether a node represents whitespace.

Check whether a node represents whitespace.
raw docstring

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

× close