Package org.checkerframework.javacutil
Class TreeUtilsAfterJava11.SwitchExpressionUtils
java.lang.Object
org.checkerframework.javacutil.TreeUtilsAfterJava11.SwitchExpressionUtils
- Enclosing class:
- TreeUtilsAfterJava11
Utility methods for accessing 
SwitchExpressionTree methods.- 
Method SummaryModifier and TypeMethodDescriptionReturns the cases ofswitchExpressionTree.static ExpressionTreegetExpression(Tree switchExpressionTree) Returns the selector expression ofswitchExpressionTree.
- 
Method Details- 
getCasesReturns the cases ofswitchExpressionTree. For exampleswitch ( expression ) { cases }- Parameters:
- switchExpressionTree- the switch expression whose cases are returned
- Returns:
- the cases of switchExpressionTree
 
- 
getExpressionReturns the selector expression ofswitchExpressionTree. For exampleswitch ( expression ) { ... }- Parameters:
- switchExpressionTree- the switch expression whose selector expression is returned
- Returns:
- the selector expression of switchExpressionTree
 
 
-