open fun isRequired(descriptor: DependencyDescriptor): Boolean
Determine whether the given descriptor is effectively required.
The default implementation checks DependencyDescriptor#isRequired().
descriptor - the descriptor for the target method parameter or field
Return
whether the descriptor is marked as required or possibly indicating non-required status some other way (e.g. through a parameter annotation)
Since
5.0
See Also
DependencyDescriptor#isRequired()