hasTextMatching

abstract fun hasTextMatching(regex: Regex): Boolean

Text of the declaration matching regex.

Return

true if the declaration's text matching with the regex, false otherwise.

Parameters

regex

The regex to check against. It is a non-null string representing the desired regex.