- All Superinterfaces:
StatementTree
,Tree
public interface SwitchTree extends StatementTree
A tree node for aswitch
statement. For example:switch ( expression ) { cases }
- Since:
- 1.6
- See The Java™ Language Specification:
- section 14.11
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends CaseTree>
getCases()
Returns the cases for theswitch
statement.ExpressionTree
getExpression()
Returns the expression for theswitch
statement.
Method Detail
getExpression
ExpressionTree getExpression()
Returns the expression for theswitch
statement.- Returns:
- the expression