Class AnnotationUtils

java.lang.Object
io.micronaut.annotation.processing.AnnotationUtils

@Deprecated(forRemoval=true, since="4.3.0") @Internal public class AnnotationUtils extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
No longer needed
Utility methods for annotations.
Author:
Graeme Rocher, Dean Wette
  • Constructor Details

    • AnnotationUtils

      protected AnnotationUtils(ProcessingEnvironment processingEnv, Elements elementUtils, Messager messager, Types types, ModelUtils modelUtils, GenericUtils genericUtils, Filer filer, MutableConvertibleValues<Object> visitorAttributes)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
      Parameters:
      processingEnv - The processing env
      elementUtils - The elements
      messager - The messager
      types - The types
      modelUtils - The model utils
      genericUtils - The generic utils
      filer - The filer
      visitorAttributes - The visitor attributes
    • AnnotationUtils

      public AnnotationUtils(ProcessingEnvironment processingEnv, Elements elementUtils, Messager messager, Types types, ModelUtils modelUtils, GenericUtils genericUtils, Filer filer)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
      Parameters:
      processingEnv - The processing env
      elementUtils - The elements
      messager - The messager
      types - The types
      modelUtils - The model utils
      genericUtils - The generic utils
      filer - The filer
  • Method Details

    • getElementValidator

      public @Nullable AnnotatedElementValidator getElementValidator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      The AnnotatedElementValidator instance. Can be null.
      Returns:
      The validator instance
    • newAnnotationBuilder

      @Deprecated(forRemoval=true, since="4.3.0") public JavaAnnotationMetadataBuilder newAnnotationBuilder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Access the builder from the visitor
      Creates a new annotation builder.
      Returns:
      The builder
    • newVisitorContext

      public JavaVisitorContext newVisitorContext()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new JavaVisitorContext.
      Returns:
      The visitor context