Class AnnotationUtils
java.lang.Object
io.micronaut.annotation.processing.AnnotationUtils
Utility methods for annotations.
- Author:
- Graeme Rocher, Dean Wette
-
Constructor Summary
ModifierConstructorDescriptionprotected
AnnotationUtils
(ProcessingEnvironment processingEnv, Elements elementUtils, Messager messager, Types types, ModelUtils modelUtils, GenericUtils genericUtils, Filer filer) Default constructor.protected
AnnotationUtils
(ProcessingEnvironment processingEnv, Elements elementUtils, Messager messager, Types types, ModelUtils modelUtils, GenericUtils genericUtils, Filer filer, MutableConvertibleValues<Object> visitorAttributes) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionTheAnnotatedElementValidator
instance.Creates a new annotation builder.Creates a newJavaVisitorContext
.
-
Constructor Details
-
AnnotationUtils
protected AnnotationUtils(ProcessingEnvironment processingEnv, Elements elementUtils, Messager messager, Types types, ModelUtils modelUtils, GenericUtils genericUtils, Filer filer, MutableConvertibleValues<Object> visitorAttributes) Default constructor.- Parameters:
processingEnv
- The processing envelementUtils
- The elementsmessager
- The messagertypes
- The typesmodelUtils
- The model utilsgenericUtils
- The generic utilsfiler
- The filervisitorAttributes
- 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 envelementUtils
- The elementsmessager
- The messagertypes
- The typesmodelUtils
- The model utilsgenericUtils
- The generic utilsfiler
- The filer
-
-
Method Details
-
getElementValidator
TheAnnotatedElementValidator
instance. Can be null.- Returns:
- The validator instance
-
newAnnotationBuilder
Creates a new annotation builder.- Returns:
- The builder
-
newVisitorContext
Creates a newJavaVisitorContext
.- Returns:
- The visitor context
-