Package io.quarkus.gizmo
Class AnnotationCreatorImpl
java.lang.Object
io.quarkus.gizmo.AnnotationCreatorImpl
- All Implemented Interfaces:
AnnotationCreator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationCreatorImpl(String annotationType, RetentionPolicy retentionPolicy) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new annotation element with the givennameandvalue.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.gizmo.AnnotationCreator
add
-
Field Details
-
values
-
annotationType
-
retentionPolicy
-
-
Constructor Details
-
AnnotationCreatorImpl
AnnotationCreatorImpl(String annotationType, RetentionPolicy retentionPolicy)
-
-
Method Details
-
addValue
Description copied from interface:AnnotationCreatorAdd a new annotation element with the givennameandvalue. The name may be any permissible annotation element name (for example,toStringorannotationTypeare invalid). The value may be:- primitive wrapper type
StringEnumClass- nested annotation as an
AnnotationCreatorcreated usingAnnotationCreator.of(), or as a JandexAnnotationInstance - array of previously mentioned types
AnnotationValue.- Specified by:
addValuein interfaceAnnotationCreator- Parameters:
name- name of the annotation element to addvalue- value of the annotation element to add
-
getValues
-
getAnnotationType
-
getRetentionPolicy
-