CaseBlock : { [CaseClauses] } { [CaseClauses] DefaultClause [CaseClauses] } CaseClauses : CaseClause CaseClauses CaseClause CaseClause : case Expression : [StatementList] DefaultClause : default : [StatementList]
189190191192193194195196197198199200201202
return (T) node; } @Override public AstNode caseStatement(AstNode expression, Iterable<AstNode> statements) { SwitchCase s = new SwitchCase(); s.setExpression(expression); for (AstNode stmt : statements) { if (stmt != null) { s.addStatement(stmt); } } return s; }