Class AbstractBeanResolutionContext.AnnotationSegment

  • All Implemented Interfaces:
    BeanResolutionContext.Segment, io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.naming.Named, InjectionPoint
    Enclosing class:
    AbstractBeanResolutionContext

    public static final class AbstractBeanResolutionContext.AnnotationSegment
    extends java.lang.Object
    implements InjectionPoint
    A segment that represents annotation.
    Since:
    3.3.0
    • Field Summary

      • Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

        EMPTY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      io.micronaut.core.type.Argument getArgument()  
      BeanDefinition getDeclaringBean()  
      BeanDefinition getDeclaringType()  
      InjectionPoint getInjectionPoint()  
      java.lang.String getName()  
      int hashCode()  
      boolean requiresReflection()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

        findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationSource

        getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • requiresReflection

        public boolean requiresReflection()
        Specified by:
        requiresReflection in interface InjectionPoint
        Returns:
        Whether reflection is required to satisfy the injection point
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface BeanResolutionContext.Segment
        Specified by:
        getName in interface io.micronaut.core.naming.Named
        Returns:
        The name of the segment. For a field this is the field name, for a method the method name and for a constructor the type name
      • getArgument

        public io.micronaut.core.type.Argument getArgument()
        Specified by:
        getArgument in interface BeanResolutionContext.Segment
        Returns:
        The argument to create the type. For a field this will be empty
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object