Represents a type. Type is usually either a class with optional type arguments, or a type parameter of some declaration, plus nullability.
Returns a Java Type instance corresponding to the given Kotlin type. Note that one Kotlin type may correspond to different JVM types depending on where it appears. For example, Unit corresponds to the JVM class Unit when it's the type of a parameter, or to void
when it's the return type of a function.
Returns the KClass instance representing the runtime class to which this type is erased to on JVM.
Returns true if this element is annotated with an annotation of type T.
Returns true
if this
type is the same or is a subtype of other, false
otherwise.
Returns true
if this
type is the same or is a supertype of other, false
otherwise.
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-type/index.html