public interface AnnotationElement extends AnnotationTarget<JavaAnnotation,AnnotationElement>, Origin<JavaAnnotation>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AnnotationElement.DefaultValue |
| Modifier and Type | Method and Description |
|---|---|
AnnotationElement.DefaultValue |
getDefaultValue() |
String |
getName() |
String |
getQualifiedType()
Get this annotation element's fully qualified type.
|
String |
getType()
Get this annotation element's type.
|
Type<JavaAnnotation> |
getTypeInspector()
Get this annotation element's
Type |
boolean |
isType(Class<?> type)
Attempt to determine if this annotation element is of the same type as the given type.
|
boolean |
isType(String type)
Attempt to determine if this annotation element is of the same type as the given type.
|
AnnotationElement |
setName(String name) |
AnnotationElement |
setType(Class<?> clazz)
Set the type of this
AnnotationElement to the given Class type. |
AnnotationElement |
setType(JavaSource<?> entity)
Set the type of this
AnnotationElement to the given JavaSource> type. |
AnnotationElement |
setType(String type)
Set the type of this
AnnotationElement to the given type. |
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, hasAnnotation, hasAnnotation, removeAnnotationgetInternalString getName()
AnnotationElement setName(String name)
String getType()
String getQualifiedType()
Type<JavaAnnotation> getTypeInspector()
Typeboolean isType(Class<?> type)
boolean isType(String type)
AnnotationElement setType(Class<?> clazz)
AnnotationElement to the given Class type. Attempt to add an import statement
to this annotation element's base O if required.AnnotationElement setType(String type)
AnnotationElement to the given type. Attempt to add an import statement to this
annotation element's base O if required. (Note that the given className must be fully-qualified in order
to properly import required classes)AnnotationElement setType(JavaSource<?> entity)
AnnotationElement to the given JavaSource> type. Attempt to add an import
statement to this field's base O if required.AnnotationElement.DefaultValue getDefaultValue()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.