Interface Annotatable
- All Known Implementing Classes:
GroovyFieldDeclaration
,GroovyMethodDeclaration
,GroovyTypeDeclaration
,JavaFieldDeclaration
,JavaMethodDeclaration
,JavaTypeDeclaration
,KotlinFunctionDeclaration
,KotlinPropertyDeclaration
,KotlinTypeDeclaration
,Parameter
,TypeDeclaration
public interface Annotatable
A representation of something that can be annotated.
- Author:
- Andy Wilkinson, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
annotate
(Annotation annotation) Deprecated, for removal: This API element is subject to removal in a future version.Return theAnnotationContainer
to use to configure the annotations of this element.default List<Annotation>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
annotations
AnnotationContainer annotations()Return theAnnotationContainer
to use to configure the annotations of this element.- Returns:
- the annotation container
-
annotate
Deprecated, for removal: This API element is subject to removal in a future version. -
getAnnotations
Deprecated, for removal: This API element is subject to removal in a future version.
-