Class MicronautMergedAnnotations

java.lang.Object
io.micronaut.spring.core.annotation.MicronautMergedAnnotations
All Implemented Interfaces:
Iterable<org.springframework.core.annotation.MergedAnnotation<Annotation>>, org.springframework.core.annotation.MergedAnnotations

@Internal public class MicronautMergedAnnotations extends Object implements org.springframework.core.annotation.MergedAnnotations
Implements the MergedAnnotations interface.
Since:
4.3.0
Author:
graemerocher
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.core.annotation.MergedAnnotations

    org.springframework.core.annotation.MergedAnnotations.Search, org.springframework.core.annotation.MergedAnnotations.SearchStrategy
  • Constructor Summary

    Constructors
    Constructor
    Description
    MicronautMergedAnnotations(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <A extends Annotation>
    org.springframework.core.annotation.MergedAnnotation<A>
    get(Class<A> annotationType)
     
    <A extends Annotation>
    org.springframework.core.annotation.MergedAnnotation<A>
    get(Class<A> annotationType, Predicate<? super org.springframework.core.annotation.MergedAnnotation<A>> predicate)
     
    <A extends Annotation>
    org.springframework.core.annotation.MergedAnnotation<A>
    get(Class<A> annotationType, Predicate<? super org.springframework.core.annotation.MergedAnnotation<A>> predicate, org.springframework.core.annotation.MergedAnnotationSelector<A> selector)
     
    <A extends Annotation>
    org.springframework.core.annotation.MergedAnnotation<A>
    get(String annotationType)
     
    <A extends Annotation>
    org.springframework.core.annotation.MergedAnnotation<A>
    get(String annotationType, Predicate<? super org.springframework.core.annotation.MergedAnnotation<A>> predicate)
     
    <A extends Annotation>
    org.springframework.core.annotation.MergedAnnotation<A>
    get(String annotationType, Predicate<? super org.springframework.core.annotation.MergedAnnotation<A>> predicate, org.springframework.core.annotation.MergedAnnotationSelector<A> selector)
     
    <A extends Annotation>
    boolean
    isDirectlyPresent(Class<A> annotationType)
     
    boolean
    isDirectlyPresent(String annotationType)
     
    <A extends Annotation>
    boolean
    isPresent(Class<A> annotationType)
     
    boolean
    isPresent(String annotationType)
     
    Iterator<org.springframework.core.annotation.MergedAnnotation<Annotation>>
     
    Stream<org.springframework.core.annotation.MergedAnnotation<Annotation>>
     
    <A extends Annotation>
    Stream<org.springframework.core.annotation.MergedAnnotation<A>>
    stream(Class<A> annotationType)
     
    <A extends Annotation>
    Stream<org.springframework.core.annotation.MergedAnnotation<A>>
    stream(String annotationType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • MicronautMergedAnnotations

      public MicronautMergedAnnotations(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
  • Method Details

    • isPresent

      public <A extends Annotation> boolean isPresent(Class<A> annotationType)
      Specified by:
      isPresent in interface org.springframework.core.annotation.MergedAnnotations
    • isPresent

      public boolean isPresent(String annotationType)
      Specified by:
      isPresent in interface org.springframework.core.annotation.MergedAnnotations
    • isDirectlyPresent

      public <A extends Annotation> boolean isDirectlyPresent(Class<A> annotationType)
      Specified by:
      isDirectlyPresent in interface org.springframework.core.annotation.MergedAnnotations
    • isDirectlyPresent

      public boolean isDirectlyPresent(String annotationType)
      Specified by:
      isDirectlyPresent in interface org.springframework.core.annotation.MergedAnnotations
    • get

      public <A extends Annotation> org.springframework.core.annotation.MergedAnnotation<A> get(Class<A> annotationType)
      Specified by:
      get in interface org.springframework.core.annotation.MergedAnnotations
    • get

      public <A extends Annotation> org.springframework.core.annotation.MergedAnnotation<A> get(Class<A> annotationType, Predicate<? super org.springframework.core.annotation.MergedAnnotation<A>> predicate)
      Specified by:
      get in interface org.springframework.core.annotation.MergedAnnotations
    • get

      public <A extends Annotation> org.springframework.core.annotation.MergedAnnotation<A> get(Class<A> annotationType, Predicate<? super org.springframework.core.annotation.MergedAnnotation<A>> predicate, org.springframework.core.annotation.MergedAnnotationSelector<A> selector)
      Specified by:
      get in interface org.springframework.core.annotation.MergedAnnotations
    • get

      public <A extends Annotation> org.springframework.core.annotation.MergedAnnotation<A> get(String annotationType)
      Specified by:
      get in interface org.springframework.core.annotation.MergedAnnotations
    • get

      public <A extends Annotation> org.springframework.core.annotation.MergedAnnotation<A> get(String annotationType, Predicate<? super org.springframework.core.annotation.MergedAnnotation<A>> predicate)
      Specified by:
      get in interface org.springframework.core.annotation.MergedAnnotations
    • get

      public <A extends Annotation> org.springframework.core.annotation.MergedAnnotation<A> get(String annotationType, Predicate<? super org.springframework.core.annotation.MergedAnnotation<A>> predicate, org.springframework.core.annotation.MergedAnnotationSelector<A> selector)
      Specified by:
      get in interface org.springframework.core.annotation.MergedAnnotations
    • stream

      public <A extends Annotation> Stream<org.springframework.core.annotation.MergedAnnotation<A>> stream(Class<A> annotationType)
      Specified by:
      stream in interface org.springframework.core.annotation.MergedAnnotations
    • stream

      public <A extends Annotation> Stream<org.springframework.core.annotation.MergedAnnotation<A>> stream(String annotationType)
      Specified by:
      stream in interface org.springframework.core.annotation.MergedAnnotations
    • stream

      public Stream<org.springframework.core.annotation.MergedAnnotation<Annotation>> stream()
      Specified by:
      stream in interface org.springframework.core.annotation.MergedAnnotations
    • iterator

      public Iterator<org.springframework.core.annotation.MergedAnnotation<Annotation>> iterator()
      Specified by:
      iterator in interface Iterable<org.springframework.core.annotation.MergedAnnotation<Annotation>>