JvmDefault
@Target
(
[AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY]
)
annotation
class
JvmDefault
(source)
Specifies that a JVM default method should be generated for non-abstract Kotlin interface member.
This annotation can no longer be used. It has been superseded by the new
-Xjvm-default
modes
all
and
all-compatibility
,
and the new annotations
@JvmDefaultWithCompatibility
and
@JvmDefaultWithoutCompatibility
.
Constructors
<init>
Specifies that a JVM default method should be generated for non-abstract Kotlin interface member.
JvmDefault
(
)
Extension Properties
annotationClass
Returns a KClass instance corresponding to the annotation type of this annotation.
val
<
T
:
Annotation
>
T
.
annotationClass
:
KClass
<
out
T
>