hasTextStartingWith

abstract fun hasTextStartingWith(prefix: String): Boolean

Text of the declaration with prefix.

Return

true if the declaration's text starts with the prefix, false otherwise.

Parameters

prefix

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