public interface AnnotationList extends FilterableList<AnnotationDescription,AnnotationList>
Modifier and Type | Interface and Description |
---|---|
static class |
AnnotationList.Empty
Represents an empty annotation list.
|
static class |
AnnotationList.Explicit
Represents a list of explicitly provided annotation descriptions.
|
static class |
AnnotationList.ForLoadedAnnotation
Describes an array of loaded
Annotation s as an annotatoon list. |
FilterableList.AbstractBase<T,S extends FilterableList<T,S>>
Modifier and Type | Method and Description |
---|---|
AnnotationList |
inherited(Set<? extends TypeDescription> ignoredTypes)
Returns only annotations that are marked as
Inherited as long as they are not
contained by the set of ignored annotation types. |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Checks if this list contains an annotation of the given type.
|
boolean |
isAnnotationPresent(TypeDescription annotationType)
Checks if this list contains an annotation of the given type.
|
<T extends Annotation> |
ofType(Class<T> annotationType)
Finds the first annotation of the given type and returns it.
|
filter, getOnly, subList
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
annotationType
- The type to find in the list.true
if the list contains the annotation type.boolean isAnnotationPresent(TypeDescription annotationType)
annotationType
- The type to find in the list.true
if the list contains the annotation type.<T extends Annotation> AnnotationDescription.Loadable<T> ofType(Class<T> annotationType)
T
- The annotation type.annotationType
- The type to be found in the list.null
if no such annotation was found.AnnotationList inherited(Set<? extends TypeDescription> ignoredTypes)
Inherited
as long as they are not
contained by the set of ignored annotation types.ignoredTypes
- A list of annotation types to be ignored from the lookup.Copyright © 2014–2015. All rights reserved.