java.lang.Object
io.helidon.common.processor.AnnotationFactory
Factory for annotations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Annotation
createAnnotation
(AnnotationMirror am, Elements elements) Creates an instance from an annotation mirror during annotation processing.static Set
<Annotation> createAnnotations
(List<? extends AnnotationMirror> annoMirrors, Elements elements) Creates a set of annotations using annotation processor.static Set
<Annotation> createAnnotations
(Element type, Elements elements) Creates a set of annotations based using annotation processor.
-
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 mirrorselements
- annotation processing element utils- Returns:
- the annotation value set
-
createAnnotations
Creates a set of annotations based using annotation processor.- Parameters:
type
- the enclosing/owing type elementelements
- annotation processing element utils- Returns:
- the annotation value set
-
createAnnotation
Creates an instance from an annotation mirror during annotation processing.- Parameters:
am
- the annotation mirrorelements
- the elements- Returns:
- the new instance or empty if the annotation mirror passed is invalid
-