1 package spoon.reflect.code; 2 3 import java.util.List; 4 5 /** 6 * This code element defines a <code>case</code> within a <code>switch</code>. 7 * 8 * @param <S> This type must be assignable from the switch type 9 * @see spoon.reflect.code.CtSwitch 10 */ 11 public interface CtCase<S> extends CtStatement { 12 /** 13 * Gets the case expression. 14 */ 15 CtExpression<S> getCaseExpression(); 16 17 /** 18 * Sets the case expression. 19 */ 20 void setCaseExpression(CtExpression<S> caseExpression); 21 22 /** 23 * Gets the list of statements that defines the case body. 24 */ 25 List<CtStatement> getStatements(); 26 27 /** 28 * Sets the list of statements that defines the case body. 29 */ 30 void setStatements(List<CtStatement> statements); 31 } 32