Numbered

class Numbered(val key: String, val children: (location: String) -> List<Node>) : LocationTrackableNode

Node that can be numbered depending on its location in the document and the amount of occurrences according to its key.

Parameters

key

name to group (and count) numbered nodes

children

supplier of the node content given the evaluated SectionLocation, formatted according to the active DocumentNumbering

See also

Constructors

Link copied to clipboard
constructor(key: String, children: (location: String) -> List<Node>)

Properties

Link copied to clipboard

Whether this node should be tracked in the document's hierarchy.

Link copied to clipboard
val children: (location: String) -> List<Node>
Link copied to clipboard
val key: String

Functions

Link copied to clipboard
open override fun <T> accept(visitor: NodeVisitor<T>): T

Accepts a visitor.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard