Class AnnotationInfoList

    • Method Detail

      • directOnly

        public AnnotationInfoList directOnly()
        returns the list of direct annotations, excluding meta-annotations. If this AnnotationInfoList consists of class annotations, i.e. if it was produced using `ClassInfo#getAnnotationInfo()`, then the returned list also excludes annotations inherited from a superclass or implemented interface that was meta-annotated with @Inherited.
        Returns:
        The list of directly-related annotations.
      • asMap

        public Map<String,​T> asMap()
        Returns:
        An index for this list, as a map from the name of each list item (obtained by calling getName on the list item) to the list item.
      • containsName

        public boolean containsName​(String name)
        Parameters:
        name - The name to search for.
        Returns:
        true if this list contains an item with the given name.
      • get

        public T get​(String name)
        Parameters:
        name - The name to search for.
        Returns:
        The list item with the given name, or null if not found.
      • getAsStrings

        public List<String> getAsStrings()
        Returns:
        The string representations of all items in this list, obtained by calling toString() on each item in the list.