Companion

object Companion

Functions

Link copied to clipboard
fun builder(type: ClassName): AnnotationSpec.Builder
fun builder(type: ParameterizedTypeName): AnnotationSpec.Builder
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
fun builder(type: Class<out Annotation>): AnnotationSpec.Builder
fun builder(type: KClass<out Annotation>): AnnotationSpec.Builder
Link copied to clipboard
@DelicateKotlinPoetApi(message = "Mirror APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
fun get(annotation: AnnotationMirror): AnnotationSpec
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
fun get(annotation: Annotation, includeDefaultValues: Boolean = false): AnnotationSpec