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. |
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) |
AnnotationSource<O> |
getAnnotation(String type) |
List<AnnotationSource<O>> |
getAnnotations() |
T |
removeAnnotation(Annotation<O> annotation) |
hasAnnotation, hasAnnotationgetInternalList<AnnotationSource<O>> getAnnotations()
getAnnotations in interface AnnotationTarget<O extends JavaSource<O>>AnnotationSource<O> getAnnotation(Class<? extends Annotation> type)
getAnnotation in interface AnnotationTarget<O extends JavaSource<O>>AnnotationSource<O> getAnnotation(String type)
getAnnotation in interface AnnotationTarget<O extends JavaSource<O>>AnnotationSource<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)
Copyright © 2014 JBoss by Red Hat. All rights reserved.