public static class AnnotationList.ForLoadedAnnotations extends AnnotationList.AbstractBase
Annotation
s as an annotation list.AnnotationList.AbstractBase, AnnotationList.Empty, AnnotationList.Explicit, AnnotationList.ForLoadedAnnotations
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends java.lang.annotation.Annotation> |
annotations
The represented annotations.
|
Constructor and Description |
---|
ForLoadedAnnotations(java.lang.annotation.Annotation... annotation)
Creates a new list of loaded annotations.
|
ForLoadedAnnotations(java.util.List<? extends java.lang.annotation.Annotation> annotations)
Creates a new list of loaded annotations.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<AnnotationList> |
asList(java.lang.annotation.Annotation[][] annotations)
Creates a list of annotation lists representing the given loaded annotations.
|
AnnotationDescription |
get(int index) |
int |
size() |
asTypeList, inherited, isAnnotationPresent, isAnnotationPresent, ofType, ofType, visibility, wrap
filter, getOnly, subList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
private final java.util.List<? extends java.lang.annotation.Annotation> annotations
public ForLoadedAnnotations(java.lang.annotation.Annotation... annotation)
annotation
- The represented annotations.public ForLoadedAnnotations(java.util.List<? extends java.lang.annotation.Annotation> annotations)
annotations
- The represented annotations.public static java.util.List<AnnotationList> asList(java.lang.annotation.Annotation[][] annotations)
annotations
- The annotations to represent where each dimension is converted into a list.public AnnotationDescription get(int index)
get
in interface java.util.List<AnnotationDescription>
get
in class java.util.AbstractList<AnnotationDescription>
public int size()
size
in interface java.util.Collection<AnnotationDescription>
size
in interface java.util.List<AnnotationDescription>
size
in class java.util.AbstractCollection<AnnotationDescription>