252 }
253
254 /**
255 * {@inheritDoc} This implementation calls {@code defaultAction}.
256 *
257 * @param node {@inheritDoc}
258 * @param p {@inheritDoc}
259 * @return the result of {@code defaultAction}
260 */
261 @Override
262 public R visitSwitch(SwitchTree node, P p) {
263 return defaultAction(node, p);
264 }
265
266 /**
267 * {@inheritDoc} This implementation calls {@code defaultAction}.
268 *
269 * @param node {@inheritDoc}
270 * @param p {@inheritDoc}
271 * @return the result of {@code defaultAction}
272 */
273 @Override
274 public R visitCase(CaseTree node, P p) {
275 return defaultAction(node, p);
276 }
277
278 /**
279 * {@inheritDoc} This implementation calls {@code defaultAction}.
280 *
281 * @param node {@inheritDoc}
282 * @param p {@inheritDoc}
283 * @return the result of {@code defaultAction}
284 */
285 @Override
286 public R visitSynchronized(SynchronizedTree node, P p) {
287 return defaultAction(node, p);
288 }
289
290 /**
291 * {@inheritDoc} This implementation calls {@code defaultAction}.
|
252 }
253
254 /**
255 * {@inheritDoc} This implementation calls {@code defaultAction}.
256 *
257 * @param node {@inheritDoc}
258 * @param p {@inheritDoc}
259 * @return the result of {@code defaultAction}
260 */
261 @Override
262 public R visitSwitch(SwitchTree node, P p) {
263 return defaultAction(node, p);
264 }
265
266 /**
267 * {@inheritDoc} This implementation calls {@code defaultAction}.
268 *
269 * @param node {@inheritDoc}
270 * @param p {@inheritDoc}
271 * @return the result of {@code defaultAction}
272 *
273 * @deprecated
274 * This method is modeling switch expressions,
275 * which are part of a preview feature and may be removed
276 * if the preview feature is removed.
277 */
278 @Override
279 @Deprecated(forRemoval=true, since="12")
280 @SuppressWarnings("removal")
281 public R visitSwitchExpression(SwitchExpressionTree node, P p) {
282 return defaultAction(node, p);
283 }
284
285 /**
286 * {@inheritDoc} This implementation calls {@code defaultAction}.
287 *
288 * @param node {@inheritDoc}
289 * @param p {@inheritDoc}
290 * @return the result of {@code defaultAction}
291 */
292 @Override
293 public R visitCase(CaseTree node, P p) {
294 return defaultAction(node, p);
295 }
296
297 /**
298 * {@inheritDoc} This implementation calls {@code defaultAction}.
299 *
300 * @param node {@inheritDoc}
301 * @param p {@inheritDoc}
302 * @return the result of {@code defaultAction}
303 */
304 @Override
305 public R visitSynchronized(SynchronizedTree node, P p) {
306 return defaultAction(node, p);
307 }
308
309 /**
310 * {@inheritDoc} This implementation calls {@code defaultAction}.
|