public interface AnnotationTargetSource<O extends JavaSource<O>,T> extends AnnotationTarget<O>
| Modifier and Type | Method and Description |
|---|---|
AnnotationSource<O> |
addAnnotation()
Add a new annotation instance to this
T (note that an import statement must be added manually if
required). |
AnnotationSource<O> |
addAnnotation(Class<? extends Annotation> type)
Add a new annotation instance to this
T, using the given Class as the annotation type. |
AnnotationSource<O> |
addAnnotation(String className)
Add a new annotation instance to this
T, using the given String className as the annotation type. |
AnnotationSource<O> |
getAnnotation(Class<? extends Annotation> type)
Returns the annotation bound of the given type in this
AnnotationTarget or null if it doesn't exist |
AnnotationSource<O> |
getAnnotation(String type)
Returns the annotation bound of the given type in this
AnnotationTarget or null if it doesn't exist |
List<AnnotationSource<O>> |
getAnnotations()
|
void |
removeAllAnnotations()
Remove all annotations instance from this
T. |
T |
removeAnnotation(Annotation<O> annotation)
Remove an annotation instance from this
T. |
hasAnnotation, hasAnnotationgetInternalList<AnnotationSource<O>> getAnnotations()
AnnotationTargetgetAnnotations in interface AnnotationTarget<O extends JavaSource<O>>AnnotationSource<O> getAnnotation(Class<? extends Annotation> type)
AnnotationTargetAnnotationTarget or null if it doesn't existgetAnnotation in interface AnnotationTarget<O extends JavaSource<O>>type - The Annotation typeAnnotationSource<O> getAnnotation(String type)
AnnotationTargetAnnotationTarget or null if it doesn't existgetAnnotation in interface AnnotationTarget<O extends JavaSource<O>>type - The FQN of the annotationAnnotationSource<O> addAnnotation()
T (note that an import statement must be added manually if
required).AnnotationSource<O> addAnnotation(Class<? extends Annotation> type)
T, using the given Class as the annotation type. Attempt to
add an import statement to this object's O if required.AnnotationSource<O> addAnnotation(String className)
T, using the given String className as the annotation type.
Attempt to add an import statement to this object's O if required (note that the given className must be
fully-qualified in order to properly import required classes).T removeAnnotation(Annotation<O> annotation)
T.void removeAllAnnotations()
T.Copyright © 2017 JBoss by Red Hat. All rights reserved.