ReferenceNode

interface ReferenceNode<R, D> : Node

Represents a node that may reference some definition that is generated by elsewhere in the document.

Examples:

Parameters

R

the type of the reference element

D

the type of the definition associated with the reference

Inheritors

Properties

Link copied to clipboard
abstract val reference: R

The reference element to associate with the definition.

Functions

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

Accepts a visitor.

Link copied to clipboard
fun <R, D> ReferenceNode<R, D>.getDefinition(context: Context): D?
Link copied to clipboard

Retrieves the stored media associated with this node, if any.

Link copied to clipboard
fun <R, D> ReferenceNode<R, D>.setDefinition(context: MutableContext, definition: D)

Registers the given definition as the definition associated with this reference within the document handled by context.

Link copied to clipboard