KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > source > tree > CaseTree


1 /*
2  * @(#)CaseTree.java 1.2 05/11/17
3  *
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 available
8  * at <http://wwws.sun.com/software/communitysource/jrl.html>.
9  */

10
11 package com.sun.source.tree;
12
13 import java.util.List JavaDoc;
14
15 /**
16  * A tree node for a 'case' in a 'switch' statement.
17  *
18  * For example:
19  * <pre>
20  * case <em>expression</em> :
21  * <em>statements</em>
22  *
23  * default :
24  * <em>statements</em>
25  * </pre>
26  *
27  * @see "The Java Language Specification, 3rd ed, section 14.11"
28  *
29  * @author Peter von der Ah&eacute;
30  * @author Jonathan Gibbons
31  * @since 1.6
32  */

33 public interface CaseTree extends Tree {
34     /**
35      * @return null if and only if this Case is {@code default:}
36      */

37     ExpressionTree getExpression();
38     List JavaDoc<? extends StatementTree> getStatements();
39 }
40
Popular Tags