kotlinpoet
Toggle table of contents
2.1.0-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
kotlinpoet
kotlinpoet
/
com.squareup.kotlinpoet
/
Annotatable
/
Builder
Builder
jvm
interface
Builder
<
out
T
:
Annotatable.Builder
<
T
>
>
Inheritors
Builder
Builder
Builder
Builder
Builder
Builder
Members
Properties
annotations
Link copied to clipboard
jvm
abstract
val
annotations
:
MutableList
<
AnnotationSpec
>
Functions
add
Annotation
Link copied to clipboard
jvm
open
fun
addAnnotation
(
annotationSpec
:
AnnotationSpec
)
:
T
open
fun
addAnnotation
(
annotation
:
ClassName
)
:
T
@
DelicateKotlinPoetApi
(
message
=
"Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead."
)
open
fun
addAnnotation
(
annotation
:
Class
<
*
>
)
:
T
open
fun
addAnnotation
(
annotation
:
KClass
<
*
>
)
:
T
add
Annotations
Link copied to clipboard
jvm
open
fun
addAnnotations
(
annotationSpecs
:
Iterable
<
AnnotationSpec
>
)
:
T