Class MethodElementAnnotationsHelper

java.lang.Object
io.micronaut.inject.ast.annotation.MethodElementAnnotationsHelper

public final class MethodElementAnnotationsHelper extends Object
The helper class to implement method element annotations.
Since:
4.0.0
Author:
Denis Stepanov
  • Constructor Details

    • MethodElementAnnotationsHelper

      public MethodElementAnnotationsHelper(AbstractAnnotationElement methodElement, ElementAnnotationMetadataFactory elementAnnotationMetadataFactory)
      The constructor.
      Parameters:
      methodElement - The method element
      elementAnnotationMetadataFactory - The annotations factory
  • Method Details

    • getMethodAnnotationMetadata

      public @NonNull ElementAnnotationMetadata getMethodAnnotationMetadata(@Nullable AnnotationMetadata presetAnnotationMetadata)
      Returns the method annotations.
      Parameters:
      presetAnnotationMetadata - The preset annotations
      Returns:
      The method annotations
    • getAnnotationMetadata

      public @NonNull AnnotationMetadata getAnnotationMetadata(@Nullable AnnotationMetadata presetAnnotationMetadata)
      Returns the annotations.
      Parameters:
      presetAnnotationMetadata - The preset annotations
      Returns:
      The annotations