addAnnotationDeclaration

Add a public annotation declaration to the types of this compilation unit

Return

the newly created class

Parameters

name

the annotation name


Add an annotation declaration to the types of this compilation unit

Return

the newly created class

Parameters

name

the annotation name

modifiers

the modifiers (like Modifier.PUBLIC)