Class AnnotationUtils

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

@Internal public class AnnotationUtils extends Object
Utility methods for annotations.
  • Constructor Details

    • AnnotationUtils

      protected AnnotationUtils(ProcessingEnvironment processingEnv, Elements elementUtils, Messager messager, Types types, ModelUtils modelUtils, GenericUtils genericUtils, Filer filer, io.micronaut.core.convert.value.MutableConvertibleValues<Object> visitorAttributes)
      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

      protected AnnotationUtils(ProcessingEnvironment processingEnv, Elements elementUtils, Messager messager, Types types, ModelUtils modelUtils, GenericUtils genericUtils, Filer filer)
      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

      @Nullable public @Nullable io.micronaut.inject.annotation.AnnotatedElementValidator getElementValidator()
      The AnnotatedElementValidator instance. Can be null.
      Returns:
      The validator instance
    • newAnnotationBuilder

      public JavaAnnotationMetadataBuilder newAnnotationBuilder()
      Creates a new annotation builder.
      Returns:
      The builder
    • newVisitorContext

      public JavaVisitorContext newVisitorContext()
      Creates a new JavaVisitorContext.
      Returns:
      The visitor context