3333import io .github .dmlloyd .classfile .impl .AnnotationImpl ;
3434import io .github .dmlloyd .classfile .impl .TemporaryConstantPool ;
3535import io .github .dmlloyd .classfile .impl .Util ;
36- import io .github .dmlloyd .classfile .extras .PreviewFeature ;
3736
3837import static java .util .Objects .requireNonNull ;
3938
4847 * @see AnnotationElement
4948 *
5049 * @sealedGraph
51- * @since 22
50+ * @since 24
5251 */
53- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
5452public sealed interface AnnotationValue {
5553
5654 /**
5755 * Models an annotation value of an element-value pair.
5856 * The {@linkplain #tag tag} of this value is {@value TAG_ANNOTATION}.
5957 *
60- * @since 22
58+ * @since 24
6159 */
62- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
6360 sealed interface OfAnnotation extends AnnotationValue
6461 permits AnnotationImpl .OfAnnotationImpl {
6562 /** {@return the annotation value} */
@@ -70,9 +67,8 @@ sealed interface OfAnnotation extends AnnotationValue
7067 * Models an array value of an element-value pair.
7168 * The {@linkplain #tag tag} of this value is {@value TAG_ARRAY}.
7269 *
73- * @since 22
70+ * @since 24
7471 */
75- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
7672 sealed interface OfArray extends AnnotationValue
7773 permits AnnotationImpl .OfArrayImpl {
7874 /**
@@ -88,12 +84,11 @@ sealed interface OfArray extends AnnotationValue
8884 }
8985
9086 /**
91- * Models a constant-valued element
87+ * Models a constant value of an element-value pair.
9288 *
9389 * @sealedGraph
94- * @since 22
90+ * @since 24
9591 */
96- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
9792 sealed interface OfConstant extends AnnotationValue {
9893 /**
9994 * {@return the constant pool entry backing this constant element}
@@ -128,9 +123,8 @@ sealed interface OfConstant extends AnnotationValue {
128123 * Models a string value of an element-value pair.
129124 * The {@linkplain #tag tag} of this value is {@value TAG_STRING}.
130125 *
131- * @since 22
126+ * @since 24
132127 */
133- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
134128 sealed interface OfString extends OfConstant
135129 permits AnnotationImpl .OfStringImpl {
136130 /** {@return the backing UTF8 entry} */
@@ -156,9 +150,8 @@ default String resolvedValue() {
156150 * Models a double value of an element-value pair.
157151 * The {@linkplain #tag tag} of this value is {@value TAG_DOUBLE}.
158152 *
159- * @since 22
153+ * @since 24
160154 */
161- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
162155 sealed interface OfDouble extends OfConstant
163156 permits AnnotationImpl .OfDoubleImpl {
164157 /** {@return the backing double entry} */
@@ -184,9 +177,8 @@ default Double resolvedValue() {
184177 * Models a float value of an element-value pair.
185178 * The {@linkplain #tag tag} of this value is {@value TAG_FLOAT}.
186179 *
187- * @since 22
180+ * @since 24
188181 */
189- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
190182 sealed interface OfFloat extends OfConstant
191183 permits AnnotationImpl .OfFloatImpl {
192184 /** {@return the backing float entry} */
@@ -212,9 +204,8 @@ default Float resolvedValue() {
212204 * Models a long value of an element-value pair.
213205 * The {@linkplain #tag tag} of this value is {@value TAG_LONG}.
214206 *
215- * @since 22
207+ * @since 24
216208 */
217- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
218209 sealed interface OfLong extends OfConstant
219210 permits AnnotationImpl .OfLongImpl {
220211 /** {@return the backing long entry} */
@@ -240,9 +231,8 @@ default Long resolvedValue() {
240231 * Models an int value of an element-value pair.
241232 * The {@linkplain #tag tag} of this value is {@value TAG_INT}.
242233 *
243- * @since 22
234+ * @since 24
244235 */
245- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
246236 sealed interface OfInt extends OfConstant
247237 permits AnnotationImpl .OfIntImpl {
248238 /** {@return the backing integer entry} */
@@ -268,9 +258,8 @@ default Integer resolvedValue() {
268258 * Models a short value of an element-value pair.
269259 * The {@linkplain #tag tag} of this value is {@value TAG_SHORT}.
270260 *
271- * @since 22
261+ * @since 24
272262 */
273- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
274263 sealed interface OfShort extends OfConstant
275264 permits AnnotationImpl .OfShortImpl {
276265 /** {@return the backing integer entry} */
@@ -299,9 +288,8 @@ default Short resolvedValue() {
299288 * Models a char value of an element-value pair.
300289 * The {@linkplain #tag tag} of this value is {@value TAG_CHAR}.
301290 *
302- * @since 22
291+ * @since 24
303292 */
304- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
305293 sealed interface OfChar extends OfConstant
306294 permits AnnotationImpl .OfCharImpl {
307295 /** {@return the backing integer entry} */
@@ -330,9 +318,8 @@ default Character resolvedValue() {
330318 * Models a byte value of an element-value pair.
331319 * The {@linkplain #tag tag} of this value is {@value TAG_BYTE}.
332320 *
333- * @since 22
321+ * @since 24
334322 */
335- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
336323 sealed interface OfByte extends OfConstant
337324 permits AnnotationImpl .OfByteImpl {
338325 /** {@return the backing integer entry} */
@@ -361,10 +348,9 @@ default Byte resolvedValue() {
361348 * Models a boolean value of an element-value pair.
362349 * The {@linkplain #tag tag} of this value is {@value TAG_BOOLEAN}.
363350 *
364- * @since 22
351+ * @since 24
365352 */
366- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
367- sealed interface OfBoolean extends AnnotationValue .OfConstant
353+ sealed interface OfBoolean extends OfConstant
368354 permits AnnotationImpl .OfBooleanImpl {
369355 /** {@return the backing integer entry} */
370356 @ Override
@@ -392,9 +378,8 @@ default Boolean resolvedValue() {
392378 * Models a class value of an element-value pair.
393379 * The {@linkplain #tag tag} of this value is {@value TAG_CLASS}.
394380 *
395- * @since 22
381+ * @since 24
396382 */
397- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
398383 sealed interface OfClass extends AnnotationValue
399384 permits AnnotationImpl .OfClassImpl {
400385 /** {@return the class descriptor string} */
@@ -410,9 +395,8 @@ default ClassDesc classSymbol() {
410395 * Models an enum value of an element-value pair.
411396 * The {@linkplain #tag tag} of this value is {@value TAG_ENUM}.
412397 *
413- * @since 22
398+ * @since 24
414399 */
415- @ PreviewFeature (feature = PreviewFeature .Feature .CLASSFILE_API )
416400 sealed interface OfEnum extends AnnotationValue
417401 permits AnnotationImpl .OfEnumImpl {
418402 /** {@return the enum class descriptor string} */
0 commit comments