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 Details

    • build

      @NonNull ElementAnnotationMetadata build(@NonNull Element element)
      Build new element annotation metadata from the element.
      Parameters:
      element - The element
      Returns:
      the element's metadata
    • buildTypeAnnotations

      @NonNull ElementAnnotationMetadata buildTypeAnnotations(@NonNull ClassElement element)
      Build new class element type annotation metadata from the class element.
      Parameters:
      element - The element
      Returns:
      the element's metadata
    • buildGenericTypeAnnotations

      @NonNull ElementAnnotationMetadata buildGenericTypeAnnotations(@NonNull GenericElement element)
      Build new generic element type annotation metadata from the class element.
      Parameters:
      element - The element
      Returns:
      the element's metadata
    • buildMutable

      @NonNull ElementAnnotationMetadata buildMutable(@NonNull AnnotationMetadata annotationMetadata)
      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