Class SwitchCase

java.lang.Object

public class SwitchCase extends Statement
Switch case AST node type. A switch case is a special kind of node used only in switch statements. It is a Statement in name only.
 SwitchCase:
                case Expression  :
                default :

 Switch case allows multiple expressions and '->' as part of Java 12 preview feature (JEP 325)
                case [ Expression { , Expression } ]  { : | ->}
                default { : | ->}
 
Since:
2.0