238 * Used for instances of {@link SwitchTree}. |
238 * Used for instances of {@link SwitchTree}. |
239 */ |
239 */ |
240 SWITCH(SwitchTree.class), |
240 SWITCH(SwitchTree.class), |
241 |
241 |
242 /** |
242 /** |
|
243 * {@preview Associated with switch expressions, a preview feature of |
|
244 * the Java language. |
|
245 * |
|
246 * This enum constant is associated with <i>switch expressions</i>, a preview |
|
247 * feature of the Java language. Preview features |
|
248 * may be removed in a future release, or upgraded to permanent |
|
249 * features of the Java language.} |
|
250 * |
243 * Used for instances of {@link SwitchExpressionTree}. |
251 * Used for instances of {@link SwitchExpressionTree}. |
244 * |
252 * |
245 * @since 12 |
253 * @since 12 |
246 * |
254 */ |
247 * @deprecated |
255 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS) |
248 * This enum constant is modeling switch expressions, |
256 @SuppressWarnings("preview") |
249 * which are part of a preview feature and may be removed |
|
250 * if the preview feature is removed. |
|
251 */ |
|
252 @Deprecated(forRemoval=true, since="12") |
|
253 @SuppressWarnings("removal") |
|
254 SWITCH_EXPRESSION(SwitchExpressionTree.class), |
257 SWITCH_EXPRESSION(SwitchExpressionTree.class), |
255 |
258 |
256 /** |
259 /** |
257 * Used for instances of {@link SynchronizedTree}. |
260 * Used for instances of {@link SynchronizedTree}. |
258 */ |
261 */ |
657 * you are looking for. |
660 * you are looking for. |
658 */ |
661 */ |
659 OTHER(null), |
662 OTHER(null), |
660 |
663 |
661 /** |
664 /** |
|
665 * {@preview Associated with switch expressions, a preview feature of |
|
666 * the Java language. |
|
667 * |
|
668 * This enum constant is associated with <i>switch expressions</i>, a preview |
|
669 * feature of the Java language. Preview features |
|
670 * may be removed in a future release, or upgraded to permanent |
|
671 * features of the Java language.} |
|
672 * |
662 * Used for instances of {@link YieldTree}. |
673 * Used for instances of {@link YieldTree}. |
663 * |
674 * |
664 * @since 13 |
675 * @since 13 |
665 * |
676 */ |
666 * @deprecated |
677 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS) |
667 * This enum constant is modeling yield statement, |
678 @SuppressWarnings("preview") |
668 * which are part of a preview feature and may be removed |
|
669 * if the preview feature is removed. |
|
670 */ |
|
671 @Deprecated(forRemoval=true, since="13") |
|
672 @SuppressWarnings("removal") |
|
673 YIELD(YieldTree.class); |
679 YIELD(YieldTree.class); |
674 |
680 |
675 |
681 |
676 Kind(Class<? extends Tree> intf) { |
682 Kind(Class<? extends Tree> intf) { |
677 associatedInterface = intf; |
683 associatedInterface = intf; |