PatternNameAcceptanceRule
class PatternNameAcceptanceRule(val acceptsFlag: Boolean, val pattern: String) : FlagAcceptanceRule<TypeName> , VariablesSubstitutionAware<PatternNameAcceptanceRule>
Acceptance rule for type names based on pattern. Pattern may consist of any characters and of 3 special combinations:
?
- any single character or no character*
- any character sequence excluding dot (.
)**
- any character sequence
For example, pattern org.jetbrains.kotlin?.**.jupyter.*
matches following names:
org.jetbrains.kotlin.my.package.jupyter.Integration
org.jetbrains.kotlinx.some_package.jupyter.SomeClass
It doesn't match name org.jetbrains.kotlin.my.package.jupyter.integration.MyClass