1 /*2 * @(#)SwitchTree.java 1.2 05/11/173 *4 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.6 *7 * Use and Distribution is subject to the Java Research License available8 * at <http://wwws.sun.com/software/communitysource/jrl.html>.9 */10 11 package com.sun.source.tree;12 13 import java.util.List ;14 15 /**16 * A tree node for a 'switch' statement.17 *18 * For example:19 * <pre>20 * switch ( <em>expression</em> ) {21 * <em>cases</em>22 * }23 * </pre>24 *25 * @see "The Java Language Specification, 3rd ed, section 14.11"26 *27 * @author Peter von der Ahé28 * @author Jonathan Gibbons29 * @since 1.630 */31 public interface SwitchTree extends StatementTree {32 ExpressionTree getExpression();33 List <? extends CaseTree> getCases();34 }35