Class AnnotationSource.Explicit
java.lang.Object
net.bytebuddy.description.annotation.AnnotationSource.Explicit
- All Implemented Interfaces:
AnnotationSource
- Enclosing interface:
- AnnotationSource
An annotation source that declares a given list of annotations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.Explicit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<? extends AnnotationDescription>
The represented annotations. -
Constructor Summary
ConstructorsConstructorDescriptionExplicit
(List<? extends AnnotationDescription> annotations) Creates a new explicit annotation source.Explicit
(AnnotationDescription... annotation) Creates a new explicit annotation source. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotations that are declared by this instance.
-
Field Details
-
annotations
The represented annotations.
-
-
Constructor Details
-
Explicit
Creates a new explicit annotation source.- Parameters:
annotation
- The represented annotations.
-
Explicit
Creates a new explicit annotation source.- Parameters:
annotations
- The represented annotations.
-
-
Method Details
-
getDeclaredAnnotations
Returns a list of annotations that are declared by this instance.- Specified by:
getDeclaredAnnotations
in interfaceAnnotationSource
- Returns:
- A list of declared annotations.
-