PatternNameAcceptanceRule

Acceptance rule for type names based on pattern. Pattern may consist of any characters and of 3 special combinations:

  1. ? - any single character or no character

  2. * - any character sequence excluding dot (.)

  3. ** - 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

Constructors

Link copied to clipboard
constructor(acceptsFlag: Boolean, pattern: String)

Properties

Link copied to clipboard
open override val acceptsFlag: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
open override fun accepts(obj: TypeName): Boolean?
Link copied to clipboard
open override fun appliesTo(obj: TypeName): Boolean
Link copied to clipboard

Replace variables and return the result.