Package io.quarkus.gizmo
Class AnnotationCreatorImpl
- java.lang.Object
-
- io.quarkus.gizmo.AnnotationCreatorImpl
-
- All Implemented Interfaces:
AnnotationCreator
class AnnotationCreatorImpl extends java.lang.Object implements AnnotationCreator
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringannotationTypeprivate java.lang.annotation.RetentionPolicyretentionPolicyprivate java.util.Map<java.lang.String,java.lang.Object>values
-
Constructor Summary
Constructors Constructor Description AnnotationCreatorImpl(java.lang.String annotationType, java.lang.annotation.RetentionPolicy retentionPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(java.lang.String name, java.lang.Object value)Add a new annotation element with the givennameandvalue.java.lang.StringgetAnnotationType()java.lang.annotation.RetentionPolicygetRetentionPolicy()java.util.Map<java.lang.String,java.lang.Object>getValues()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.gizmo.AnnotationCreator
add
-
-
-
-
Method Detail
-
addValue
public void addValue(java.lang.String name, java.lang.Object value)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
public java.util.Map<java.lang.String,java.lang.Object> getValues()
-
getAnnotationType
public java.lang.String getAnnotationType()
-
getRetentionPolicy
public java.lang.annotation.RetentionPolicy getRetentionPolicy()
-
-