ContentDivergentInstance

data class ContentDivergentInstance(val before: ContentNode?, val divergent: ContentNode, val after: ContentNode?, val dci: DCI, val sourceSets: Set<DisplaySourceSet>, val style: Set<Style>, val extra: PropertyContainer<ContentNode> = PropertyContainer.empty()) : ContentComposite

Instance of a divergent content

Constructors

Link copied to clipboard
constructor(before: ContentNode?, divergent: ContentNode, after: ContentNode?, dci: DCI, sourceSets: Set<DisplaySourceSet>, style: Set<Style>, extra: PropertyContainer<ContentNode> = PropertyContainer.empty())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val children: List<ContentNode>
Link copied to clipboard
open override val dci: DCI
Link copied to clipboard
Link copied to clipboard
open override val extra: PropertyContainer<ContentNode>
Link copied to clipboard
open override val sourceSets: Set<DisplaySourceSet>
Link copied to clipboard
open override val style: Set<Style>

Functions

Link copied to clipboard
inline fun <T> WithChildren<*>.childrenOfType(): List<T>
Link copied to clipboard
inline fun <T> WithChildren<*>.firstChildOfType(): T
inline fun <T> WithChildren<*>.firstChildOfType(predicate: (T) -> Boolean): T
Link copied to clipboard
inline fun <T> WithChildren<*>.firstChildOfTypeOrNull(predicate: (T) -> Boolean): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hasAnyContent(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "withDescendantsProjection")
fun WithChildren<*>.withDescendants(): Sequence<Any?>
@JvmName(name = "withDescendantsAny")
fun WithChildren<Any>.withDescendants(): Sequence<Any>
Link copied to clipboard
Link copied to clipboard