Class AnnotationList.ForLoadedAnnotations
java.lang.Object
java.util.AbstractCollection<AnnotationDescription>
java.util.AbstractList<AnnotationDescription>
net.bytebuddy.matcher.FilterableList.AbstractBase<AnnotationDescription,AnnotationList>
net.bytebuddy.description.annotation.AnnotationList.AbstractBase
net.bytebuddy.description.annotation.AnnotationList.ForLoadedAnnotations
- All Implemented Interfaces:
Iterable<AnnotationDescription>
,Collection<AnnotationDescription>
,List<AnnotationDescription>
,SequencedCollection<AnnotationDescription>
,AnnotationList
,FilterableList<AnnotationDescription,
AnnotationList>
- Enclosing interface:
AnnotationList
Describes an array of loaded
Annotation
s as an annotation list.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationList
AnnotationList.AbstractBase, AnnotationList.Empty, AnnotationList.Explicit, AnnotationList.ForLoadedAnnotations
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.FilterableList
FilterableList.AbstractBase<T,
S extends FilterableList<T, S>>, FilterableList.Empty<T, S extends FilterableList<T, S>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<? extends Annotation> The represented annotations.Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionForLoadedAnnotations
(Annotation... annotation) Creates a new list of loaded annotations.ForLoadedAnnotations
(List<? extends Annotation> annotations) Creates a new list of loaded annotations. -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<AnnotationList> asList
(Annotation[][] annotations) Creates a list of annotation lists representing the given loaded annotations.get
(int index) int
size()
Methods inherited from class net.bytebuddy.description.annotation.AnnotationList.AbstractBase
asTypeList, asTypeNames, inherited, isAnnotationPresent, isAnnotationPresent, ofType, ofType, visibility, wrap
Methods inherited from class net.bytebuddy.matcher.FilterableList.AbstractBase
filter, getOnly, subList
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, toArray, toArray
-
Field Details
-
annotations
The represented annotations.
-
-
Constructor Details
-
ForLoadedAnnotations
Creates a new list of loaded annotations.- Parameters:
annotation
- The represented annotations.
-
ForLoadedAnnotations
Creates a new list of loaded annotations.- Parameters:
annotations
- The represented annotations.
-
-
Method Details
-
asList
Creates a list of annotation lists representing the given loaded annotations.- Parameters:
annotations
- The annotations to represent where each dimension is converted into a list.- Returns:
- A list of annotation lists representing the given annotations.
-
get
- Specified by:
get
in interfaceList<AnnotationDescription>
- Specified by:
get
in classAbstractList<AnnotationDescription>
-
size
public int size()- Specified by:
size
in interfaceCollection<AnnotationDescription>
- Specified by:
size
in interfaceList<AnnotationDescription>
- Specified by:
size
in classAbstractCollection<AnnotationDescription>
-