WithChildren

interface WithChildren<out T>

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

children
Link copied to clipboard
abstract val children: List<T>

Inheritors

Documentable
Link copied to clipboard
DocTag
Link copied to clipboard
DocumentationNode
Link copied to clipboard
TagWrapper
Link copied to clipboard
ContentNode
Link copied to clipboard
PageNode
Link copied to clipboard

Extensions

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