Functions

Link copied to clipboard
Annotates this node and automatically add the import
Annotates this
Link copied to clipboard
open fun addAnnotation(element: AnnotationExpr): N

open fun addAnnotation(clazz: Class<out Annotation>): N
Annotates this node and automatically add the import
open fun addAnnotation(name: String): N
Annotates this
Link copied to clipboard
open fun addMarkerAnnotation(clazz: Class<out Annotation>): N
Annotates this with a marker annotation and automatically add the import
open fun addMarkerAnnotation(name: String): N
Annotates this with a marker annotation
Link copied to clipboard
open fun addSingleMemberAnnotation(clazz: Class<out Annotation>, expression: Expression): N
open fun addSingleMemberAnnotation(name: String, expression: Expression): N
open fun addSingleMemberAnnotation(name: String, value: String): N
Annotates this with a single member annotation
open fun addSingleMemberAnnotation(clazz: Class<out Annotation>, value: String): N
Annotates this with a single member annotation and automatically add the import
Link copied to clipboard
Link copied to clipboard
open fun getAnnotationByClass(annotationClass: Class<out Annotation>): Optional<AnnotationExpr>
Try to find an annotation by its class
Link copied to clipboard
Try to find an annotation by its name
Link copied to clipboard
Link copied to clipboard
open fun isAnnotationPresent(annotationClass: Class<out Annotation>): Boolean
Check whether an annotation with this class is present on this element
open fun isAnnotationPresent(annotationName: String): Boolean
Check whether an annotation with this name is present on this element
Link copied to clipboard
open fun setAnnotation(i: Int, element: AnnotationExpr): N
Link copied to clipboard
abstract fun setAnnotations(annotations: NodeList<AnnotationExpr>): N
Link copied to clipboard