< prev index next >

src/jdk.compiler/share/classes/com/sun/source/tree/TreeVisitor.java

Print this page
rev 51258 : imported patch switch.diff

@@ -352,10 +352,27 @@
      * @return a result value
      */
     R visitSwitch(SwitchTree node, P p);
 
     /**
+     * Visits a SwitchExpressionTree node.
+     *
+     * @param node the node being visited
+     * @param p a parameter value
+     * @return a result value
+     * @since 12
+     *
+     * @deprecated
+     * This method is modeling switch expressions,
+     * which are part of a preview feature and may be removed
+     * if the preview feature is removed.
+     */
+    @Deprecated(forRemoval=true, since="12")
+    @SuppressWarnings("removal")
+    R visitSwitchExpression(SwitchExpressionTree node, P p);
+
+    /**
      * Visits a SynchronizedTree node.
      * @param node the node being visited
      * @param p a parameter value
      * @return a result value
      */
< prev index next >