getFeature

open fun <F : StructureFeature> getFeature(structure: StructureND<T>, type: KClass<out F>): F?

Get a feature of the structure in this scope. Structure features take precedence other context features.

Return

a feature object or null if it isn't present.

Parameters

F

the type of feature.

structure

the structure.

type

the KClass instance of F.

Sources

Link copied to clipboard