Core API – Kotlin Programming Language (original) (raw)

AnnotationTarget

Contains the list of code elements which are the possible annotation targets

Since Kotlin

1.0

Class, interface or object, annotation class is also included

Field, including property's backing field

Value parameter of a function or a constructor

Constructor only (primary or secondary)

Function (constructors are not included)

Returns a Java Class instance of the enum the given constant belongs to.

Returns the name of this enum constant, exactly as declared in its enum declaration.

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).

Compares this object with the specified object for order. Returns zero if this object is equal to the specified other object, a negative number if it's less than other, or a positive number if it's greater than other.

Thanks for your feedback!