262 public R visitSwitch(SwitchTree node, P p) { |
262 public R visitSwitch(SwitchTree node, P p) { |
263 return defaultAction(node, p); |
263 return defaultAction(node, p); |
264 } |
264 } |
265 |
265 |
266 /** |
266 /** |
267 * {@inheritDoc} This implementation calls {@code defaultAction}. |
267 * {@preview Associated with switch expressions, a preview feature of |
268 * |
268 * the Java language. |
269 * @param node {@inheritDoc} |
269 * |
270 * @param p {@inheritDoc} |
270 * This method is associated with <i>switch expressions</i>, a preview |
271 * @return the result of {@code defaultAction} |
271 * feature of the Java language. Preview features |
272 * |
272 * may be removed in a future release, or upgraded to permanent |
273 * @deprecated |
273 * features of the Java language.} |
274 * This method is modeling switch expressions, |
274 * |
275 * which are part of a preview feature and may be removed |
275 * {@inheritDoc} This implementation calls {@code defaultAction}. |
276 * if the preview feature is removed. |
276 * |
277 */ |
277 * @param node {@inheritDoc} |
278 @Override |
278 * @param p {@inheritDoc} |
279 @Deprecated(forRemoval=true, since="12") |
279 * @return the result of {@code defaultAction} |
280 @SuppressWarnings("removal") |
280 */ |
|
281 @Override |
|
282 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS) |
|
283 @SuppressWarnings("preview") |
281 public R visitSwitchExpression(SwitchExpressionTree node, P p) { |
284 public R visitSwitchExpression(SwitchExpressionTree node, P p) { |
282 return defaultAction(node, p); |
285 return defaultAction(node, p); |
283 } |
286 } |
284 |
287 |
285 /** |
288 /** |
789 * @param node {@inheritDoc} |
792 * @param node {@inheritDoc} |
790 * @param p {@inheritDoc} |
793 * @param p {@inheritDoc} |
791 * @return the result of {@code defaultAction} |
794 * @return the result of {@code defaultAction} |
792 */ |
795 */ |
793 @Override |
796 @Override |
794 @Deprecated(forRemoval=true, since="13") |
797 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS) |
795 @SuppressWarnings("removal") |
798 @SuppressWarnings("preview") |
796 public R visitYield(YieldTree node, P p) { |
799 public R visitYield(YieldTree node, P p) { |
797 return defaultAction(node, p); |
800 return defaultAction(node, p); |
798 } |
801 } |
799 } |
802 } |