Class MethodElementAnnotationsHelper
java.lang.Object
io.micronaut.inject.ast.annotation.MethodElementAnnotationsHelper
The helper class to implement method element annotations.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionMethodElementAnnotationsHelper
(AbstractAnnotationElement methodElement, ElementAnnotationMetadataFactory elementAnnotationMetadataFactory) The constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationMetadata
(@Nullable AnnotationMetadata presetAnnotationMetadata) Returns the annotations.getMethodAnnotationMetadata
(@Nullable AnnotationMetadata presetAnnotationMetadata) Returns the method annotations.
-
Constructor Details
-
MethodElementAnnotationsHelper
public MethodElementAnnotationsHelper(AbstractAnnotationElement methodElement, ElementAnnotationMetadataFactory elementAnnotationMetadataFactory) The constructor.- Parameters:
methodElement
- The method elementelementAnnotationMetadataFactory
- The annotations factory
-
-
Method Details
-
getMethodAnnotationMetadata
@NonNull public @NonNull ElementAnnotationMetadata getMethodAnnotationMetadata(@Nullable @Nullable AnnotationMetadata presetAnnotationMetadata) Returns the method annotations.- Parameters:
presetAnnotationMetadata
- The preset annotations- Returns:
- The method annotations
-
getAnnotationMetadata
@NonNull public @NonNull AnnotationMetadata getAnnotationMetadata(@Nullable @Nullable AnnotationMetadata presetAnnotationMetadata) Returns the annotations.- Parameters:
presetAnnotationMetadata
- The preset annotations- Returns:
- The annotations
-