public interface IJAnnotatable
| Modifier and Type | Method and Description |
|---|---|
JAnnotationUse |
annotate(AbstractJClass clazz)
Adds an annotation to this program element.
|
JAnnotationUse |
annotate(Class<? extends Annotation> clazz)
Adds an annotation to this program element.
|
<W extends IJAnnotationWriter<?>> |
annotate2(Class<W> clazz)
Adds an annotation to this program element and returns a type-safe writer
to fill in the values of such annotations.
|
Collection<JAnnotationUse> |
annotations()
Read-only live view of all annotations on this
IJAnnotatable |
@Nonnull JAnnotationUse annotate(@Nonnull AbstractJClass clazz)
clazz - The annotation class to annotate the program element withJAnnotationUse@Nonnull JAnnotationUse annotate(@Nonnull Class<? extends Annotation> clazz)
clazz - The annotation class to annotate the program element withJAnnotationUse@Nonnull <W extends IJAnnotationWriter<?>> W annotate2(@Nonnull Class<W> clazz)
W - Implementation typeclazz - Source class@Nonnull Collection<JAnnotationUse> annotations()
IJAnnotatablenull.Copyright © 2013–2015 Philip Helger. All rights reserved.