KAnnotatedElement
Platform and version requirements: JVM (1.0), Native (1.3)
interface KAnnotatedElement
Properties
Platform and version requirements: JVM (1.0)
Annotations which are present on this element.
abstract val annotations: List<Annotation>
Extension Functions
Platform and version requirements: JVM (1.1)
Returns an annotation of the given type on this element.
fun <T : Annotation> KAnnotatedElement.findAnnotation(): T?
Platform and version requirements: JVM (1.4)
Returns true if this element is annotated with an annotation of type T.
fun <T : Annotation> KAnnotatedElement.hasAnnotation(): Boolean
Inheritors
Represents a callable entity, such as a function or a property.
Platform and version requirements: JS (1.1)
interface KCallable<out R>
Platform and version requirements: JVM (1.0), Native (1.3)
interface KCallable<out R> : KAnnotatedElement
Represents a class and provides introspection capabilities. Instances of this class are obtainable by the ::class
syntax. See the Kotlin language documentation for more information.
Platform and version requirements: JS (1.1)
interface KClass<T : Any> : KClassifier
Platform and version requirements: JVM (1.0), Native (1.3)
interface KClass<T : Any> :
KDeclarationContainer,
KAnnotatedElement,
KClassifier
Platform and version requirements: JVM (1.0)
Represents a parameter passed to a function or a property getter/setter, including this
and extension receiver parameters.
interface KParameter : KAnnotatedElement
Represents a type. Type is usually either a class with optional type arguments, or a type parameter of some declaration, plus nullability.
Platform and version requirements: JS (1.1), Native (1.3)
interface KType
Platform and version requirements: JVM (1.0)
interface KType : KAnnotatedElement