addSingleMemberAnnotation

open fun addSingleMemberAnnotation(name: String, expression: Expression): N(source)

Annotates this with a single member annotation

Return

this

Parameters

name

the name of the annotation

expression

the part between ()


open fun addSingleMemberAnnotation(clazz: Class<out Annotation>, expression: Expression): N(source)

Annotates this with a single member annotation

Return

this

Parameters

clazz

the class of the annotation

expression

the part between ()


open fun addSingleMemberAnnotation(name: String, value: String): N(source)

Annotates this with a single member annotation

Return

this

Parameters

name

the name of the annotation

value

the value, don't forget to add \"\" for a string value


open fun addSingleMemberAnnotation(clazz: Class<out Annotation>, value: String): N(source)

Annotates this with a single member annotation and automatically add the import

Return

this

Parameters

clazz

the class of the annotation

value

the value, don't forget to add \"\" for a string value