asPropertyOrNull

open fun <C : NodeProperty<T>> asPropertyOrNull(superType: Class<in C>): C?(source)
open fun <C : NodeProperty<T>> asPropertyOrNull(superType: KClass<in C>): C?(source)

returns a NodeProperty of the provided superType.

Return

a capability of the provided type C

Parameters

C

type of capability

superType

the type of capability to retrieve