nodeAtAs

inline fun <N : Node> nodeAtAs(index: Int): N

Returns the child node at the specified index, cast to type N.

Return

The Node at the specified position, cast to N

Parameters

N

The expected node type

index

The zero-based index of the child

Throws

if no child exists at index or the node is not of type N