KoTacitTypeProvider

Interface for providing tacit type information.

This interface extends the KoBaseProvider and allows you to check whether a declaration or value has an explicitly declared type or if the value contains a given type with parentheses '('.

Inheritors

Functions

Link copied to clipboard
abstract fun hasTacitType(type: String): Boolean

Determines whether declaration has an explicitly declared type or if its value contains the given type with parentheses '('.

Link copied to clipboard
abstract fun hasTacitTypeOf(kClass: KClass<*>): Boolean

Determines whether declaration has an explicitly declared type of the specified Kotlin class, or if its value contains an instance of that class with parentheses '('.