| Package | Description |
|---|---|
| org.jboss.forge.parser.java |
| Modifier and Type | Method and Description |
|---|---|
AnnotationElement |
JavaAnnotation.addAnnotationElement()
Add a new Java
AnnotationElement to this JavaAnnotation instance. |
AnnotationElement |
JavaAnnotation.addAnnotationElement(String declaration)
Add a new
AnnotationElement declaration to this JavaAnnotation instance, using the given
String as the declaration. |
AnnotationElement |
JavaAnnotation.getAnnotationElement(String name)
Get the
AnnotationElement with the given name and return it, otherwise, return null. |
AnnotationElement |
AnnotationElement.setType(Class<?> clazz)
Set the type of this
AnnotationElement to the given Class type. |
AnnotationElement |
AnnotationElement.setType(JavaSource<?> entity)
Set the type of this
AnnotationElement to the given JavaSource> type. |
AnnotationElement |
AnnotationElement.setType(String type)
Set the type of this
AnnotationElement to the given type. |
| Modifier and Type | Method and Description |
|---|---|
List<AnnotationElement> |
JavaAnnotation.getAnnotationElements()
Get a list of all
AnnotationElements declared by this JavaAnnotation, or return an empty list if
no AnnotationElements are declared. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
JavaAnnotation.hasAnnotationElement(AnnotationElement annotationElement)
Return whether or not this
JavaAnnotation declares the given AnnotationElement instance. |
JavaAnnotation |
JavaAnnotation.removeAnnotationElement(AnnotationElement annotationElement)
Remove the given
AnnotationElement from this JavaAnnotation instance, if it exists; otherwise, do
nothing. |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.