- All Superinterfaces:
StatementTree,Tree
A tree node for a
switch statement.
For example:
switch ( expression ) {
cases
}
- See Java Language Specification:
-
14.11 The switch Statement
- Since:
- 1.6
-
Nested Class Summary
-
Method Summary
修饰符和类方法描述getCases()Returns the cases for theswitchstatement.Returns the expression for theswitchstatement.
-
Method Details
-
getExpression
ExpressionTree getExpression()Returns the expression for theswitchstatement.- Returns:
- the expression
-
getCases
Returns the cases for theswitchstatement.- Returns:
- the cases
-