kotlinpoet
/
com.squareup.kotlinpoet
/
AnnotationSpec
Annotation
Spec
class
AnnotationSpec
:
Taggable
Content copied to clipboard
A generated annotation on a declaration.
Types
Functions
Properties
Types
Builder
Link copied to clipboard
class
Builder
:
Taggable.Builder
<
AnnotationSpec.Builder
>
Content copied to clipboard
Companion
Link copied to clipboard
object
Companion
Content copied to clipboard
UseSiteTarget
Link copied to clipboard
enum
UseSiteTarget
:
Enum
<
AnnotationSpec.UseSiteTarget
>
Content copied to clipboard
Functions
equals
Link copied to clipboard
open operator override fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
open override fun
hashCode
():
Int
Content copied to clipboard
tag
Link copied to clipboard
open override fun <
T
:
Any
>
tag
(type:
Class
<
T
>):
T
?
Content copied to clipboard
Returns the tag attached with
type
as a key, or null if no tag is attached with that key.
open override fun <
T
:
Any
>
tag
(type:
KClass
<
T
>):
T
?
Content copied to clipboard
Returns the tag attached with
type
as a key, or null if no tag is attached with that key.
toBuilder
Link copied to clipboard
fun
toBuilder
():
AnnotationSpec.Builder
Content copied to clipboard
toString
Link copied to clipboard
open override fun
toString
():
String
Content copied to clipboard
Properties
members
Link copied to clipboard
val
members
:
List
<
CodeBlock
>
Content copied to clipboard
tags
Link copied to clipboard
open override val
tags
:
Map
<
KClass
<*>,
Any
>
Content copied to clipboard
Returns all tags.
typeName
Link copied to clipboard
val
typeName
:
TypeName
Content copied to clipboard
useSiteTarget
Link copied to clipboard
val
useSiteTarget
:
AnnotationSpec.UseSiteTarget
?
Content copied to clipboard