AnnotationInfo objects.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | AnnotationInfoList.
Filter an |
| Modifier and Type | Field and Description |
|---|---|
| private AnnotationInfoList | directlyRelatedAnnotations
The set of annotations directly related to a class or method and not inherited through a meta-annotated annotation. |
| pack-priv static final AnnotationInfoList | EMPTY_LIST
An unmodifiable empty |
| private static final long | serialVersionUID
Hides io. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AnnotationInfoList(final int
the size hint sizeHint)Construct a new modifiable empty list of |
| public | AnnotationInfoList(final AnnotationInfoList
the reachable annotations reachableAnnotations)Construct a new modifiable empty |
| pack-priv | AnnotationInfoList(final AnnotationInfoList
the reachable annotations reachableAnnotations, final AnnotationInfoList the directly related annotations directlyRelatedAnnotations)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationInfoList | Returns: The list of directly-related annotations.returns the list of direct annotations, excluding meta-annotations. |
| public static AnnotationInfoList | Returns: the unmodifiable emptyAnnotationInfoList.Return an unmodifiable empty |
| public boolean | equals(final Object
the object to be compared for equality with this list obj)Overrides io. Implements java. Compares the specified object with this list for equality. |
| public AnnotationInfoList | Returns: The subset of theAnnotationInfo objects in this list for which the given filter predicate is
true.The filterAnnotationInfoFilter to apply.Find the subset of the |
| private static void | findMetaAnnotations(final AnnotationInfo
the annotationInfo object ai, final AnnotationInfoList annotations out allAnnotationsOut, final Set<ClassInfo> visited visited)Find the transitive closure of meta-annotations. |
| protected void | |
| pack-priv static AnnotationInfoList | Returns: the indirect annotationsthe direct annotations on the class, method, method parameter or field. directAnnotationInfo, final ClassInfo for class annotations, this is the annotated class, else null. annotatedClass)Get the indirect annotations on a class (meta-annotations and/or inherited annotations). |
| public AnnotationInfoList | Returns: The list of annotations with the given class, or the empty list if none found.The class to search for. annotationClass)Get the |
| public AnnotationInfoList | Returns: The list of annotations with the given name, or the empty list if none found.The name to search for. name)Get the |
| pack-priv void | handleRepeatableAnnotations(final Set<String>
the names of all repeatable annotations allRepeatableAnnotationNames, final ClassInfo the containing class containingClassInfo, final ClassInfo.the forward relationship type for linking (or null for none) forwardRelType,the first reverse relationship type for linking (or null for none) reverseRelType0,the second reverse relationship type for linking (or null for none) reverseRelType1Handle |
| public int | hashCode()
Overrides io. Implements java. Returns the hash code value for this list. |
| directlyRelatedAnnotations | back to summary |
|---|---|
| private AnnotationInfoList directlyRelatedAnnotations The set of annotations directly related to a class or method and not inherited through a meta-annotated
annotation. This field is nullable, as the annotation info list is incrementally built. See
| |
| EMPTY_LIST | back to summary |
|---|---|
| pack-priv static final AnnotationInfoList EMPTY_LIST An unmodifiable empty | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. serialVersionUID | |
| AnnotationInfoList | back to summary |
|---|---|
| public AnnotationInfoList() Construct a new modifiable empty list of | |
| AnnotationInfoList | back to summary |
|---|---|
| public AnnotationInfoList(final int sizeHint) Construct a new modifiable empty list of
| |
| AnnotationInfoList | back to summary |
|---|---|
| public AnnotationInfoList(final AnnotationInfoList reachableAnnotations) Construct a new modifiable empty
| |
| AnnotationInfoList | back to summary |
|---|---|
| pack-priv AnnotationInfoList(final AnnotationInfoList reachableAnnotations, final AnnotationInfoList directlyRelatedAnnotations) Constructor.
| |
| directOnly | back to summary |
|---|---|
| public AnnotationInfoList directOnly() returns the list of direct annotations, excluding meta-annotations. If this
| |
| emptyList | back to summary |
|---|---|
| public static AnnotationInfoList emptyList() Return an unmodifiable empty
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides io. Implements java. Doc from java. Compares the specified object with this list for equality. Returns
| |
| filter | back to summary |
|---|---|
| public AnnotationInfoList filter(final AnnotationInfoList. Find the subset of the
| |
| findMetaAnnotations | back to summary |
|---|---|
| private static void findMetaAnnotations(final AnnotationInfo ai, final AnnotationInfoList allAnnotationsOut, final Set<ClassInfo> visited) Find the transitive closure of meta-annotations.
| |
| findReferencedClassInfo | back to summary |
|---|---|
| protected void findReferencedClassInfo(final Map<String, ClassInfo> classNameToClassInfo, final Set<ClassInfo> refdClassInfo, final LogNode log) Get | |
| getIndirectAnnotations | back to summary |
|---|---|
| pack-priv static AnnotationInfoList getIndirectAnnotations(final AnnotationInfoList directAnnotationInfo, final ClassInfo annotatedClass) Get the indirect annotations on a class (meta-annotations and/or inherited annotations).
| |
| getRepeatable | back to summary |
|---|---|
| public AnnotationInfoList getRepeatable(final Class<? extends Annotation> annotationClass) Get the
| |
| getRepeatable | back to summary |
|---|---|
| public AnnotationInfoList getRepeatable(final String name) Get the
| |
| handleRepeatableAnnotations | back to summary |
|---|---|
| pack-priv void handleRepeatableAnnotations(final Set<String> allRepeatableAnnotationNames, final ClassInfo containingClassInfo, final ClassInfo. Handle
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Implements java. Doc from java. Returns the hash code value for this list. The hash code of a list is defined to be the result of the following calculation:
This ensures that list1.equals(list2) implies that
list1.hashCode()==list2.hashCode() for any two lists,
list1 and list2, as required by the general
contract of Object#hashCode.
| |
AnnotationInfoList using a predicate mapping an AnnotationInfo object to a boolean,
producing another AnnotationInfoList for all items in the list for which the predicate is true.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: Whether or not to allow the item through the filter. If true, the item is copied to the output list; if false, it is excluded.The annotationInfo)AnnotationInfo item to filter.Whether or not to allow an |
| accept | back to summary |
|---|---|
| public boolean accept(AnnotationInfo annotationInfo) Whether or not to allow an
| |