asProperty

open fun <C : NodeProperty<T>> asProperty(superType: KClass<C>): C
open fun <C : NodeProperty<T>> asProperty(superType: Class<C>): C

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