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
Annotations 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.ForLoadedAnnotationsNested 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) intsize()Methods inherited from class net.bytebuddy.description.annotation.AnnotationList.AbstractBase
asTypeList, inherited, isAnnotationPresent, isAnnotationPresent, ofType, ofType, visibility, wrapMethods inherited from class net.bytebuddy.matcher.FilterableList.AbstractBase
filter, getOnly, subListMethods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subListMethods 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:
getin interfaceList<AnnotationDescription>- Specified by:
getin classAbstractList<AnnotationDescription>
-
size
public int size()- Specified by:
sizein interfaceCollection<AnnotationDescription>- Specified by:
sizein interfaceList<AnnotationDescription>- Specified by:
sizein classAbstractCollection<AnnotationDescription>
-