| Modifier and Type | Method and Description |
|---|---|
| public default NormalAnnotationExpr | Returns: theNormalAnnotationExpr addedthe name of the annotation name)Annotates this |
| public default NormalAnnotationExpr | Returns: theNormalAnnotationExpr addedthe class of the annotation clazz)Annotates this node and automatically add the import |
| public default N | |
| public default N | |
| public default N | Returns: thisthe class of the annotation clazz)Annotates this node and automatically add the import |
| public default N | Returns: thisthe name of the annotation name)Annotates this with a marker annotation |
| public default N | Returns: thisthe class of the annotation clazz)Annotates this with a marker annotation and automatically add the import |
| public default N | Returns: thisthe name of the annotation name, Expression the part between () expression)Annotates this with a single member annotation |
| public default N | Returns: thisthe class of the annotation clazz, Expression the part between () expression)Annotates this with a single member annotation |
| public default N | Returns: thisthe name of the annotation name, String the value, don't forget to add \"\" for a string value value)Annotates this with a single member annotation |
| public default N | Returns: thisthe class of the annotation clazz, String the value, don't forget to add \"\" for a string value value)Annotates this with a single member annotation and automatically add the import |
| public default AnnotationExpr | |
| public default Optional | getAnnotationByClass(Class<? extends Annotation>
the class of the annotation annotationClass)Try to find an annotation by its class |
| public default Optional | getAnnotationByName(String
the name of the annotation annotationName)Try to find an annotation by its name |
| public NodeList | |
| public default boolean | Returns: true if found, false if notthe name of the annotation annotationName)Check whether an annotation with this name is present on this element |
| public default boolean | Returns: true if found, false if notthe class of the annotation annotationClass)Check whether an annotation with this class is present on this element |
| public default N | |
| public N | |
| public void |
| addAndGetAnnotation | back to summary |
|---|---|
| public default NormalAnnotationExpr addAndGetAnnotation(String name) Annotates this
| |
| addAndGetAnnotation | back to summary |
|---|---|
| public default NormalAnnotationExpr addAndGetAnnotation(Class<? extends Annotation> clazz) Annotates this node and automatically add the import
| |
| addAnnotation | back to summary |
|---|---|
public default N addAnnotation(AnnotationExpr element)
| |
| addAnnotation | back to summary |
|---|---|
| public default N addAnnotation(String name) Annotates this
| |
| addAnnotation | back to summary |
|---|---|
| public default N addAnnotation(Class<? extends Annotation> clazz) Annotates this node and automatically add the import
| |
| addMarkerAnnotation | back to summary |
|---|---|
| public default N addMarkerAnnotation(String name) Annotates this with a marker annotation
| |
| addMarkerAnnotation | back to summary |
|---|---|
| public default N addMarkerAnnotation(Class<? extends Annotation> clazz) Annotates this with a marker annotation and automatically add the import
| |
| addSingleMemberAnnotation | back to summary |
|---|---|
| public default N addSingleMemberAnnotation(String name, Expression expression) Annotates this with a single member annotation
| |
| addSingleMemberAnnotation | back to summary |
|---|---|
| public default N addSingleMemberAnnotation(Class<? extends Annotation> clazz, Expression expression) Annotates this with a single member annotation
| |
| addSingleMemberAnnotation | back to summary |
|---|---|
| public default N addSingleMemberAnnotation(String name, String value) Annotates this with a single member annotation | |
| addSingleMemberAnnotation | back to summary |
|---|---|
| public default N addSingleMemberAnnotation(Class<? extends Annotation> clazz, String value) Annotates this with a single member annotation and automatically add the import
| |
| getAnnotation | back to summary |
|---|---|
| public default AnnotationExpr getAnnotation(int i) | |
| getAnnotationByClass | back to summary |
|---|---|
| public default Optional Try to find an annotation by its class
| |
| getAnnotationByName | back to summary |
|---|---|
| public default Optional Try to find an annotation by its name
| |
| getAnnotations | back to summary |
|---|---|
| public NodeList | |
| isAnnotationPresent | back to summary |
|---|---|
| public default boolean isAnnotationPresent(String annotationName) Check whether an annotation with this name is present on this element
| |
| isAnnotationPresent | back to summary |
|---|---|
| public default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) Check whether an annotation with this class is present on this element
| |
| setAnnotation | back to summary |
|---|---|
public default N setAnnotation(int i, AnnotationExpr element)
| |
| setAnnotations | back to summary |
|---|---|
| public N setAnnotations(NodeList<AnnotationExpr> annotations) | |
| tryAddImportToParentCompilationUnit | back to summary |
|---|---|
| public void tryAddImportToParentCompilationUnit(Class<?> clazz) | |