asProperty

open fun <C : NodeProperty<T>> asProperty(superType: KClass<C>): C(source)
open fun <C : NodeProperty<T>> asProperty(superType: Class<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