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 TypeMethodDescriptionBuild new element annotation metadata from the element.Build new generic element type annotation metadata from the class element.buildMutable
(AnnotationMetadata annotationMetadata) Build new mutable element annotation metadata.buildTypeAnnotations
(ClassElement element) Build new class element type annotation metadata from the class element.readOnly()
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
Makes this factory read-only. No modification to the annotation metadata should be persisted into the shared cache.- Returns:
- read-only factory
-