public interface Annotable
Modifier and Type | Method and Description |
---|---|
GeneratedAnnotationUse |
annotate(Class<? extends Annotation> clazz)
Adds an annotation to this program element.
|
GeneratedAnnotationUse |
annotate(TypeReference clazz)
Adds an annotation to this program element.
|
<W extends AnnotationWriter> |
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<GeneratedAnnotationUse> |
annotations()
Read-only live view of all annotations on this
Annotable |
GeneratedAnnotationUse annotate(TypeReference clazz)
clazz
- The annotation class to annotate the program element withGeneratedAnnotationUse annotate(Class<? extends Annotation> clazz)
clazz
- The annotation class to annotate the program element with<W extends AnnotationWriter> W annotate2(Class<W> clazz)
Collection<GeneratedAnnotationUse> annotations()
Annotable
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.