Interface ElementAnnotationMetadataFactory
- All Known Implementing Classes:
AbstractElementAnnotationMetadataFactory,GroovyElementAnnotationMetadataFactory,JavaElementAnnotationMetadataFactory
public interface ElementAnnotationMetadataFactory
Element's annotation metadata factory.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription@NonNull ElementAnnotationMetadataBuild new element annotation metadata from the element.@NonNull ElementAnnotationMetadatabuildGenericTypeAnnotations(@NonNull GenericElement element) Build new generic element type annotation metadata from the class element.@NonNull ElementAnnotationMetadatabuildMutable(@NonNull AnnotationMetadata annotationMetadata) Build new mutable element annotation metadata.@NonNull ElementAnnotationMetadatabuildTypeAnnotations(@NonNull ClassElement element) Build new class element type annotation metadata from the class element.@NonNull ElementAnnotationMetadataFactoryreadOnly()Makes this factory read-only.
-
Method Details
-
build
Build new element annotation metadata from the element.- Parameters:
element- The element- Returns:
- the element's metadata
-
buildTypeAnnotations
Build new class element type annotation metadata from the class element.- Parameters:
element- The element- Returns:
- the element's metadata
-
buildGenericTypeAnnotations
Build new generic element type annotation metadata from the class element.- Parameters:
element- The element- Returns:
- the element's metadata
-
buildMutable
Build new mutable element annotation metadata.- Parameters:
annotationMetadata- The preloaded annotation- Returns:
- the element's metadata
-
readOnly
@NonNull ElementAnnotationMetadataFactory readOnly()Makes this factory read-only. No modification to the annotation metadata should be persisted into the shared cache.- Returns:
- read-only factory
-