Class AnnotationFactory

java.lang.Object
io.helidon.common.processor.AnnotationFactory

public final class AnnotationFactory extends Object
Factory for annotations.
  • Method Details

    • createAnnotations

      public static Set<Annotation> createAnnotations(List<? extends AnnotationMirror> annoMirrors, Elements elements)
      Creates a set of annotations using annotation processor.
      Parameters:
      annoMirrors - the annotation type mirrors
      elements - annotation processing element utils
      Returns:
      the annotation value set
    • createAnnotations

      public static Set<Annotation> createAnnotations(Element type, Elements elements)
      Creates a set of annotations based using annotation processor.
      Parameters:
      type - the enclosing/owing type element
      elements - annotation processing element utils
      Returns:
      the annotation value set
    • createAnnotation

      public static Annotation createAnnotation(AnnotationMirror am, Elements elements)
      Creates an instance from an annotation mirror during annotation processing.
      Parameters:
      am - the annotation mirror
      elements - the elements
      Returns:
      the new instance or empty if the annotation mirror passed is invalid