< prev index next >

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

Print this page
rev 51291 : imported patch switch
rev 51292 : [mq]: switch.02

*** 67,81 **** */ @Deprecated(forRemoval=true, since="12") List<? extends ExpressionTree> getExpressions(); /** ! * Returns the statements labeled by the case. ! * If this is a case in switch expression in for ! * {@code case expression -> value}, returns a list ! * containing a single synthetic BreakTree with ! * the given value. * @return the statements labeled by the case or null */ List<? extends StatementTree> getStatements(); /** --- 67,80 ---- */ @Deprecated(forRemoval=true, since="12") List<? extends ExpressionTree> getExpressions(); /** ! * For case with kind {@linkplain CaseKind#STATEMENT}, ! * returns the statements labeled by the case. ! * Returns {@code null} for case with kind ! * {@linkplain CaseKind#RULE}. * @return the statements labeled by the case or null */ List<? extends StatementTree> getStatements(); /**
< prev index next >