Class JavaElementAnnotationMetadataFactory
java.lang.Object
io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory<Element,AnnotationMirror>
io.micronaut.annotation.processing.JavaElementAnnotationMetadataFactory
- All Implemented Interfaces:
ElementAnnotationMetadataFactory
public final class JavaElementAnnotationMetadataFactory
extends AbstractElementAnnotationMetadataFactory<Element,AnnotationMirror>
Java element annotation metadata factory.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory
AbstractElementAnnotationMetadataFactory.AbstractElementAnnotationMetadata, AbstractElementAnnotationMetadataFactory.MutableElementAnnotationMetadata
-
Field Summary
Fields inherited from class io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory
isReadOnly, metadataBuilder
-
Constructor Summary
ConstructorDescriptionJavaElementAnnotationMetadataFactory
(boolean isReadOnly, JavaAnnotationMetadataBuilder metadataBuilder) -
Method Summary
Modifier and TypeMethodDescriptionBuild new element annotation metadata from the element.protected Element
getNativeElement
(Element element) Resolve native element.lookupTypeAnnotationsForClass
(ClassElement classElement) Lookup annotation metadata for the class.lookupTypeAnnotationsForGenericPlaceholder
(GenericPlaceholderElement placeholderElement) Lookup annotation metadata for the placeholder.lookupTypeAnnotationsForWildcard
(WildcardElement wildcardElement) Lookup annotation metadata for the wildcard.readOnly()
Makes this factory read-only.Methods inherited from class io.micronaut.inject.ast.annotation.AbstractElementAnnotationMetadataFactory
buildGenericTypeAnnotations, buildMutable, buildTypeAnnotations, lookupForClass, lookupForField, lookupForMethod, lookupForPackage, lookupForParameter
-
Constructor Details
-
JavaElementAnnotationMetadataFactory
public JavaElementAnnotationMetadataFactory(boolean isReadOnly, JavaAnnotationMetadataBuilder metadataBuilder)
-
-
Method Details
-
readOnly
Description copied from interface:ElementAnnotationMetadataFactory
Makes this factory read-only. No modification to the annotation metadata should be persisted into the shared cache.- Returns:
- read-only factory
-
build
Description copied from interface:ElementAnnotationMetadataFactory
Build new element annotation metadata from the element.- Specified by:
build
in interfaceElementAnnotationMetadataFactory
- Overrides:
build
in classAbstractElementAnnotationMetadataFactory<Element,
AnnotationMirror> - Parameters:
element
- The element- Returns:
- the element's metadata
-
getNativeElement
Description copied from class:AbstractElementAnnotationMetadataFactory
Resolve native element.- Overrides:
getNativeElement
in classAbstractElementAnnotationMetadataFactory<Element,
AnnotationMirror> - Parameters:
element
- The element- Returns:
- The native element
-
lookupTypeAnnotationsForClass
protected AbstractAnnotationMetadataBuilder.CachedAnnotationMetadata lookupTypeAnnotationsForClass(ClassElement classElement) Description copied from class:AbstractElementAnnotationMetadataFactory
Lookup annotation metadata for the class.- Overrides:
lookupTypeAnnotationsForClass
in classAbstractElementAnnotationMetadataFactory<Element,
AnnotationMirror> - Parameters:
classElement
- The element- Returns:
- The annotation metadata
-
lookupTypeAnnotationsForGenericPlaceholder
protected AbstractAnnotationMetadataBuilder.CachedAnnotationMetadata lookupTypeAnnotationsForGenericPlaceholder(GenericPlaceholderElement placeholderElement) Description copied from class:AbstractElementAnnotationMetadataFactory
Lookup annotation metadata for the placeholder.- Overrides:
lookupTypeAnnotationsForGenericPlaceholder
in classAbstractElementAnnotationMetadataFactory<Element,
AnnotationMirror> - Parameters:
placeholderElement
- The element- Returns:
- The annotation metadata
-
lookupTypeAnnotationsForWildcard
protected AbstractAnnotationMetadataBuilder.CachedAnnotationMetadata lookupTypeAnnotationsForWildcard(WildcardElement wildcardElement) Description copied from class:AbstractElementAnnotationMetadataFactory
Lookup annotation metadata for the wildcard.- Overrides:
lookupTypeAnnotationsForWildcard
in classAbstractElementAnnotationMetadataFactory<Element,
AnnotationMirror> - Parameters:
wildcardElement
- The element- Returns:
- The annotation metadata
-