replace

open fun replace(node: Node): Boolean(source)

Try to replace this node in the parent with the supplied node.

Return

true if removed, or if the parent isn't set.

Throws

if it fails in an unexpected way


open fun replace(node: Node, replacementNode: Node): Boolean(source)