addAnnotation

open fun addAnnotation(element: AnnotationExpr): N(source)


open fun addAnnotation(name: String): N(source)

Annotates this

Return

this

Parameters

name

the name of the annotation


open fun addAnnotation(clazz: Class<out Annotation>): N(source)

Annotates this node and automatically add the import

Return

this

Parameters

clazz

the class of the annotation