- 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
Modifier and TypeMethodDescriptiongetCases()
Returns the cases for theswitch
statement.Returns the expression for theswitch
statement.
-
Method Details
-
getExpression
ExpressionTree getExpression()Returns the expression for theswitch
statement.- Returns:
- the expression
-
getCases
-