Class SwitchExpression

java.lang.Object

public class SwitchExpression extends Expression
Switch expression AST node type (added in JEP 325).
 SwitchExpression:
                switch ( Expression )
                        { { SwitchCase | Statement } }
 SwitchCase:
                case [ Expression { , Expression } ]  { : | ->}
                default { : | ->}
 
SwitchCase nodes are treated as a kind of Statement.
Since:
3.22