public interface AnnotationTarget<O extends JavaSource<O>,T> extends Internal, Origin<O>
| Modifier and Type | Method and Description |
|---|---|
Annotation<O> |
addAnnotation()
Add a new annotation instance to this
T. |
Annotation<O> |
addAnnotation(Class<? extends Annotation> type)
Add a new annotation instance to this
T, using the given Class as the annotation type. |
Annotation<O> |
addAnnotation(String className)
Add a new annotation instance to this
T, using the given String className as the annotation type. |
Annotation<O> |
getAnnotation(Class<? extends Annotation> type) |
Annotation<O> |
getAnnotation(String type) |
List<Annotation<O>> |
getAnnotations() |
boolean |
hasAnnotation(Class<? extends Annotation> type) |
boolean |
hasAnnotation(String type) |
T |
removeAnnotation(Annotation<O> annotation) |
getInternalAnnotation<O> addAnnotation()
T. (Note that an import statement must be added manually if
required.)Annotation<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.Annotation<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)List<Annotation<O>> getAnnotations()
boolean hasAnnotation(Class<? extends Annotation> type)
boolean hasAnnotation(String type)
Annotation<O> getAnnotation(Class<? extends Annotation> type)
Annotation<O> getAnnotation(String type)
T removeAnnotation(Annotation<O> annotation)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.